php获取日期时间等

月初时间戳

strtotime(date('Y-m-01'));

strtotime(date('Y-m-d', strtotime('first day of this month')))

月末时间戳

strtotime(date('Y-m-t 23:59:59'))

strtotime(date('Y-m-d', strtotime('last day of this month'))) + 86400 -1

posted @ 2022-04-14 14:31  仁义礼智信的  阅读(60)  评论(0)    收藏  举报