将Facebook Graph API Date转换为UNIX时间戳
问题描述:
如何将Facebook Graph API Date转换为UNIX时间戳?
How might I convert a Facebook Graph API Date to a UNIX timestamp?
答
我不知道日期格式但我怀疑它是一种通用和/或标准格式,因此 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');