Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.01 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.01 KB

TimeZone\Constants

Build Status

All of PHP's timezone strings in handy constants. PHP7 compatible branch.

Versions

PHP version branch library version
7.0+ master ^1.0
5.6.* php-56 ^0.1
HHVM php-56 ^0.1

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)
);