php$date = new DateTime(null, new DateTimeZone('Europe/London'));$tz = $date->getTimezone();echo $tz-
bananas" => 5, "apples" => 10);// Array of locations in Europe$locations = array('Amsterdam', 'Paris', 'London
phpdate_default_timezone_set('Europe/London');if (date_default_timezone_get()) { echo 'date_default_timezone_set
php$date = new DateTime("2014-06-20 11:45 Europe/London");$immutable = DateTimeImmutable::createFromMutable
php// Error handling by catching exceptions$timezones = array('Europe/London', 'Mars/Phobos', 'Jupiter
php$timezone = new DateTimeZone("Europe/London");$transitions = $timezone->getTransitions();print_r(array_slice
如果您再次尝试对另一个城市执行相同的操作,则会返回一个错误: 46>{X,Y}={london,{f,36}}.
#So+0000isalocaltimesuchasEurope/London,etc.