Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个以秒为单位的整数形式的 UTC 偏移列表。例如 -36000 表示 -10 小时。如何在 PHP 中找到具有该偏移量的位置的 UNIX 时间戳,例如 10:00PM。
PS:不是作业
谢谢
new DateTime($yourTimestamp, new DateTimeZone('UTC'));
应该没事