如何在PHP中给出UTC偏移量的特定HH:MM时间的UNIX时间戳?

时间:2012-02-16 00:52:02

标签: php timezone utc timezone-offset

我有一个UTC偏移列表,以秒为单位。例如-36000持续-10小时。 如何在PHP中找到具有该偏移量的位置的10月PM的UNIX时间戳。

PS:这不是家庭作业

由于

1 个答案:

答案 0 :(得分:-1)

new DateTime($ yourTimestamp,new DateTimeZone('UTC'));

应该没问题