且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Facebook Graph API Date转换为UNIX时间戳

更新时间:2023-01-22 12:49:46

我不知道日期格式但我怀疑它是一种通用和/或标准格式,因此 strtotime() 应该可以正常工作。

I don't know the date format but I suspect it is in a common and/or standard format so strtotime() should work just fine.

$timestamp = strtotime('2012-04-24T22:01:00+0000');