timezone/constants

All of PHP's timezone strings in handy constants.

Maintainers

Package info

github.com/guiwoda/timezone-constants

pkg:composer/timezone/constants

Statistics

Installs: 41 489

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 0

1.0.0 2016-01-31 23:19 UTC

This package is not auto-updated.

Last update: 2026-03-06 17:19:26 UTC


README

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