![](/img/trans.png)
[英]Given an UTC offset and a date time, how can we find its UTC date time in PHP?
[英]How do I find the UNIX timestamp for a specific HH:MM time given a UTC offset in PHP?
我有一个以秒为单位的UTC偏移量列表。 例如-36000 -10小时。 如何在PHP中具有该偏移量的位置找到UNIX时间戳,例如10:00 PM。
PS:这不是功课
谢谢
新的DateTime($ yourTimestamp,新的DateTimeZone('UTC'));
应该没事
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.