2009-11-06 68 views
0

我一直在使用strtotime(「$ day- $ month- $ year」),在我的應用程序中,它的工作很酷......但知道我想使一些日期比較仍然以這種格式但我不知道什麼是精確的,strtotime的正確參數格式

這是因爲如果任何格式去

回答

1

manual page for strtotime()有一些很好的見解,包括註釋。

+0

我現在沿着這些路線,兩種格式(「$ day- $ month- $ year」)或(「$ year- $ month- $ day」)都解析爲相同的答案。謝謝 – 2009-11-06 10:30:01

+0

'strtotime - 從http://php.net/manual/en/function.strtotime.php解析任何英文文本日期時間描述到Unix時間戳。你能否詳細說明'關於任何英文文本日期時間描述'? – 2017-10-03 19:35:59