[英]PHP parse date with Timezone+Offset using strtotime()
PHP's strtotime("2015-05-11 00:03:24 UTC+1")
gives me the unix timestamp 1431302604
. PHP的
strtotime("2015-05-11 00:03:24 UTC+1")
给了我unix时间戳1431302604
。 But the timestamp should be 1431299004 . 但时间戳记应为1431299004 。
Am I wrong? 我错了吗? Or how can I correctly parse this date with PHP 5.4.
或者,如何使用PHP 5.4正确解析该日期。
尝试strtotime("2015-05-11 00:03:24+01:00")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.