您当前的位置: 首页 >  php

漏刻有时

暂无认证

  • 3浏览

    0关注

    717博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

php计算时间差转化时间戳函数strtotime

漏刻有时 发布时间:2020-09-30 17:42:00 ,浏览量:3

$fromTime = date("Y-m-d H:i:s", strtotime("-60 MINUTE"));//当前时间上一个小时的时间;
echo(strtotime("now") . "");
echo(strtotime("15 October 1980") . "");
echo(strtotime("+5 hours") . "");
echo(strtotime("+1 week") . "");
echo(strtotime("+1 week 3 days 7 hours 5 seconds") . "");
echo(strtotime("next Monday") . "");
echo(strtotime("last Sunday"));

Done!

关注
打赏
1661217259
查看更多评论
立即登录/注册

微信扫码登录

0.0968s