DateTimeZone类中有奇怪的常量 const ALL = 2047;}$dtz = new DateTimeZone(DateTimeZone::UTC); // throws Exception with message// DateTimeZone::__construct(): Unknown
我有一个小的实用程序方法,它将一个DateTime转换为一个特定的DateTimeZone,在那个时区中设置时间,然后再转换到另一个时区: * Delivers a DateTime withchanged time in the specified DateTimeZonedtzConversion, final DateTimeZone dtzReturn) // convert to given timezone
DateTimedtClie