当前位置:网站首页>时间戳strtotime前一天或后一天的日期
时间戳strtotime前一天或后一天的日期
2022-07-05 16:12:00 【withkai44】
date_default_timezone_set(‘PRC’); //默认时区
今天: date("Y-m-d", time())
昨天: date("Y-m-d", strtotime("-1 day"))
明天: date("Y-m-d", strtotime("+1 day"))
5天后: date('Y-m-d', strtotime("+5 day"))
一周后: date("Y-m-d", strtotime("+1 week"))
一周零两天四小时两秒后: date("Y-m-d G:H:s", strtotime("+1 week 2 days 4 hours 2 seconds"))
下个星期四: date("Y-m-d", strtotime("next Thursday"))
上个周一: date("Y-m-d", strtotime("last Monday"))
一个月前: date("Y-m-d", strtotime("last month"))
一个月前: date("Y-m-d", strtotime("-1 month"))
一个月后: date("Y-m-d", strtotime("+1 month"))
边栏推荐
- 【刷題篇】鹅廠文化衫問題
- Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
- Reduce the cost by 40%! Container practice of redis multi tenant cluster
- 自己要有自己的坚持
- How was the middle table destroyed?
- 不敢买的思考
- 服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- 【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
- Jarvis OJ 远程登录协议
猜你喜欢

Reduce the cost by 40%! Container practice of redis multi tenant cluster

DeSci:去中心化科学是Web3.0的新趋势?

Jarvis OJ 简单网管协议

File operation --i/o

文件操作--I/O

SQL injection of cisp-pte (Application of secondary injection)

Single merchant v4.4 has the same original intention and strength!

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache

Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
随机推荐
Cs231n notes (bottom) - applicable to 0 Foundation
Learnopongl notes (I)
[js] skill simplification if empty judgment
PHP strict mode
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
新春限定丨“牛年忘烦”礼包等你来领~
Cartoon: what is service fusing?
Reduce the cost by 40%! Container practice of redis multi tenant cluster
今日睡眠质量记录79分
Migrate /home partition
Keras crash Guide
Summary of methods for finding intersection of ordered linked list sets
Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
Get ready for the pre-season card game MotoGP ignition champions!
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
Do sqlserver have any requirements for database performance when doing CDC
关于new Map( )还有哪些是你不知道的
How to set the WiFi password of the router on the computer