复制代码 代码如下:
<?php echo strtotime('2012-12-7'); //结果:1354838400 ?>
复制代码 代码如下:
<?php echo $time=intval(time()); ?>
复制代码 代码如下:
<?php
echo date("Y-m-d H:i:s",intval(time()));
?>
复制代码 代码如下:
<?php
/*
from:
@date:2013-02-22
*/
echo strtotime ("now"), "n";
echo strtotime ("10 September 2000"), "n";
echo strtotime ("+1 day"), "n";
echo strtotime ("+1 week"), "n";
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "n";
echo strtotime ("next Thursday"), "n";
echo strtotime ("last Monday"), "n";
?>
新闻热点
疑难解答