0
我很害怕,但我找不到任何功能? 我能做到這一點獲得此時間戳的這個
echo date("Y-m-d g:i:s a", 1333442414662) . "\n";
但我無法找到任何功能,時間從功能
date("Y-m-d H:i:s", time());
轉換爲unix時間戳
我很害怕,但我找不到任何功能? 我能做到這一點獲得此時間戳的這個
echo date("Y-m-d g:i:s a", 1333442414662) . "\n";
但我無法找到任何功能,時間從功能
date("Y-m-d H:i:s", time());
轉換爲unix時間戳
這是很輕鬆,因爲這:
$yourdate =date("Y-m-d H:i:s", time());
strtotime($yourdate);
的strtotime? http://php.net/manual/en/function.strtotime.php
你的意思是你需要轉換「09_05_2012_16_55_12」到UNIX時間戳? – deceze
哎呀!對不起,我想轉換日期(「Y-m-d H:i:s」,time()); – Thompson
有什麼問題?你有什麼嘗試,什麼沒有工作? – deceze