I know that UTC and GMT are effectively the same thing.
BST (British Standard Time) is GMT +- 1 hour depending on DST (Daylight Saving Time).
With that in mind, how is Europe/London interpreted in PHP? Is it basically UTC/GMT?
如何用 PHP 解释欧洲/伦敦?基本上是UTC / GMT吗?
它们不一样(UTC/GMT 没有夏令时)。在撰写本文时,它们相隔一个小时:
$utc = new DateTime('now', new DateTimeZone('UTC'));
echo $utc->format('Y-m-d H:i:s'); // output: 2013-06-03 15:37:08
$el = new DateTime('now', new DateTimeZone('Europe/London'));
echo $el->format('Y-m-d H:i:s'); // output: 2013-06-03 16:37:08