时区/常量

PHP所有时区字符串的便捷常量。

1.0.0 2016-01-31 23:19 UTC

This package is not auto-updated.

Last update: 2024-09-20 10:12:27 UTC


README

Build Status

PHP所有时区字符串的便捷常量。PHP7兼容分支。

版本

用法

通过composer引入

composer require timezone/constants:^1.0

然后在需要的地方使用这些常量

$nowInBuenosAires = new \DateTime(
	'now', 
	new \DateTimeZone(\TimeZone\Constants::AMERICA_ARGENTINA_BUENOS_AIRES)
);