将Facebook Graph API Date转换为UNIX时间戳 [英] Convert Facebook Graph API Date to UNIX timestamp
本文介绍了将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');
这篇关于将Facebook Graph API Date转换为UNIX时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文