php获取一个月前的时间戳,获取三个月前的时间戳,获取一年前的时间戳

论坛 期权论坛 脚本     
已经匿名di用户   2022-3-21 23:59   2527   0

strtotime 非常强大的一个获取时间戳的函数

php获取一个月前的时间戳:

strtotime("-0 year -1 month -0 day");

php获取三个月前的时间戳:

strtotime("-0 year -3 month -0 day");

php获取六个月前的时间戳:

strtotime("-0 year -6 month -0 day");

php获取一年前的时间戳:

strtotime("-1 year -0 month -0 day");

转载于:https://www.cnblogs.com/phpyangbo/p/8010800.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP