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


#获取前一小时
strtotime("-1 hour")

#获取前一天
strtotime("-1 day")

#获取前一周
strtotime("-1 week")

#获取前一个月
strtotime("-1 month")

#获取前半年
strtotime("-6 month")

#获取前一年
strtotime("-1 year")

posted @ 2022-06-29 16:59  zlf2000  阅读(249)  评论(0编辑  收藏  举报