php strtotime
时间:2011-04-25 来源:峰雪
echo date("Y-m-d H:i:s",strtotime("now")). "<br />";
echo date("Y-m-d H:i:s",strtotime("10 September 2000")). "<br />";
echo date("Y-m-d H:i:s",strtotime("+2 day")). "<br />";
echo date("Y-m-d H:i:s",strtotime("+1 week")). "<br />";
echo date("Y-m-d H:i:s",strtotime("+1 week 2 days 4 hours 2 seconds")). "<br />";
echo date("Y-m-d H:i:s",strtotime("next Thursday")). "<br />";
echo date("Y-m-d H:i:s",strtotime("last Monday")). "<br />";
echo date("Y-m-d H:i:s",strtotime("+3 day",strtotime('2001-01-01')));
相关阅读 更多 +