timezone/constants
Composer 安装命令:
composer require timezone/constants
包简介
All of PHP's timezone strings in handy constants.
README 文档
README
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) );
统计信息
- 总下载量: 41.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-31