首页 话题 小组 问答 好文 用户 我的社区 域名交易 唠叨

[分享]php计算时间差转化时间戳函数strtotime

发布于 2024-06-03 21:16:46
0
155


$fromTime = date("Y-m-d H:i:s", strtotime("-60 MINUTE"));//当前时间上一个小时的时间;
echo(strtotime("now") . "<br>");
echo(strtotime("15 October 1980") . "<br>");
echo(strtotime("+5 hours") . "<br>");
echo(strtotime("+1 week") . "<br>");
echo(strtotime("+1 week 3 days 7 hours 5 seconds") . "<br>");
echo(strtotime("next Monday") . "<br>");
echo(strtotime("last Sunday"));
评论
一个月内的热帖推荐
道亮_(:з」∠)_
Lv.1管理员

404

帖子

30

小组

2177

积分

赞助商广告
站长交流