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.
我很害怕,但我找不到任何功能?我可以做这个
echo date("Y-m-d g:i:s a", 1333442414662) . "\n";
但我找不到任何函数来从函数转换时间
date("Y-m-d H:i:s", time());
到 unix 时间戳
时间?http://php.net/manual/en/function.strtotime.php
这很简单:
$yourdate =date("Y-m-d H:i:s", time()); strtotime($yourdate);