timezone / constants
All of PHP's timezone strings in handy constants.
Installs: 38 448
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 1
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^5.1
This package is not auto-updated.
Last update: 2024-11-15 10:51:58 UTC
README
All of PHP's timezone strings in handy constants. PHP7 compatible branch.
Versions
Usage
Require it through composer:
composer require timezone/constants:^1.0
Then use the constants wherever you need them:
$nowInBuenosAires = new \DateTime( 'now', new \DateTimeZone(\TimeZone\Constants::AMERICA_ARGENTINA_BUENOS_AIRES) );