[PHP日期时间函数]④--strtotime()

Paste_Image.png
echo time() . "
";//1503371399 echo strtotime('now') . "
";//1503371399 echo date("Y-m-d H:i:s", time() + 24 * 3600) . "
";//2017-08-23 03:09:59 echo date("Y-m-d H:i:s", strtotime('+1 days')) . "
";//2017-08-23 03:09:59 echo date("Y-m-d H:i:s", strtotime('+2 years 3 month 12 days')) . "
";//2019-12-04 03:11:28
[PHP日期时间函数]④--strtotime()_第1张图片
Paste_Image.png

你可能感兴趣的:([PHP日期时间函数]④--strtotime())