Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
facebook 为发布日期返回此值:
2012-05-17T05:07:43+01:00
如何将其翻译为我所在位置的人类可读日期/时间,例如我在香港?
谢谢你的帮助!
这取决于您使用的编程语言……</p>
例如,在 PHP 中,您可以strtotime先使用从上述时间字符串获取 unix 时间戳,然后使用strftime.
strtotime
strftime