- 博客(1)
- 收藏
- 关注
原创 PHP中常见日期、月份、时间戳列表(strtotime、date、mktime的用法)
在实际开发过程中,特别是做查询统计时,经常会用到最近七天、上周、上个月、每月第一天等时间操作,以下是一些常见用例:日期今天 date('Y-m-d')明天 date('Y-m-d',strtotime('1 day'))明天 date('Y-m-d',strtotime('tomorrow'))明天 date("Y-m-d",mktime(0,0,0,date('m'),date('d')+1,date('Y')))昨天 date('Y-m-d'
2020-05-15 17:15:28 1129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人