php strtotime

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')));

原文地址:https://www.cnblogs.com/mybest/p/2027254.html