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.
下面的时间戳格式有名称吗?我将如何使用 PHP 以相同的格式重现时间和日期?
2012-11-15T17:30:47-05:00
谢谢
它似乎是 ISO 8601 格式,http ://en.wikipedia.org/wiki/ISO_8601 。看看这个以该格式显示日期:How to display a date as iso 8601 format with PHP
ISO 8601 格式已添加到date()PHP 5 中的函数中,因此您可以使用:
date()
date('c');
http://php.net/manual/en/function.date.php