2017 © Pedro Peláez
 

library php-named-time-offset

PHP library for named time offsets

image

rupertchen/php-named-time-offset

PHP library for named time offsets

  • Thursday, February 6, 2014
  • by rupertchen
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-named-time-offset

PHP library for named time offsets, (*1)

What This Is

A library providing a mapping from named time offsets (e.g., Pacific Standard Time, Pacific Daylight Time) to integer IDs for more efficient storing and to their common abbreviations for convenient display., (*2)

What This Is Not

This is not a library for determining timezones or handling their changing offsets. It does not have any dependency on the timezone database., (*3)

Why This Is Needed

It may be desirable to allow a user to enter time in a specific time offset and remember which offset for later display. Although abbreviations are the most common way for people to work with offsets, they are not unique. The full offset names are unique, but they are verbose and inefficient for storage., (*4)

This library attempts to address the issue by providing unique numeric constants for storage mapped to full names and abbreviations for display., (*5)

How To Run The Tests

From the command line, run:, (*6)

$ ./bin/phpunit

The Versions

06/02 2014

dev-master

9999999-dev http://github.com/rupertchen/php-named-time-offset

PHP library for named time offsets

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Rupert Chen

date time timezone utc gmt offset