mktime

mktime
 
$t=mktime(22,0,0,8,31,1983);
 
$time=time()-$t;
 
echo '李文凯活了'.$time.'秒<br>';
echo '李文凯活了'.($time/60).'分<br>';
echo '李文凯活了'.($time/60/60).'小时<br>';
echo '李文凯活了'.($time/60/60/24).'天<br>';
echo '李文凯活了'.($time/60/60/24/7).'周<br>';
posted @ 2012-05-28 12:53  holyes  阅读(157)  评论(0编辑  收藏  举报