当前位置:网站首页>Timestamp strtotime the day before or after the date
Timestamp strtotime the day before or after the date
2022-07-05 16:49:00 【withkai44】
date_default_timezone_set(‘PRC’); // Default time zone
today : date("Y-m-d", time())
yesterday : date("Y-m-d", strtotime("-1 day"))
Tomorrow, : date("Y-m-d", strtotime("+1 day"))
5 Days later : date('Y-m-d', strtotime("+5 day"))
A week later : date("Y-m-d", strtotime("+1 week"))
Two days a week, four hours and two seconds later : date("Y-m-d G:H:s", strtotime("+1 week 2 days 4 hours 2 seconds"))
Next Thursday : date("Y-m-d", strtotime("next Thursday"))
Last Monday : date("Y-m-d", strtotime("last Monday"))
A month ago : date("Y-m-d", strtotime("last month"))
A month ago : date("Y-m-d", strtotime("-1 month"))
After a month : date("Y-m-d", strtotime("+1 month"))
边栏推荐
- BS-XX-042 基于SSM实现人事管理系统
- Record a 'very strange' troubleshooting process of cloud security group rules
- [729. My Schedule i]
- Win11如何给应用换图标?Win11给应用换图标的方法
- Learnopongl notes (I)
- Cs231n notes (bottom) - applicable to 0 Foundation
- [es6] add if judgment or ternary operator judgment in the template string
- Hiengine: comparable to the local cloud native memory database engine
- 【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
- 树莓派4b安装Pytorch1.11
猜你喜欢
随机推荐
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
Seaborn绘制11个柱状图
[729. My Schedule i]
Cheer yourself up
What is the difference between EDI license and ICP business license
Jarvis OJ 简单网管协议
Quelques réflexions cognitives
Jarvis OJ Flag
不敢买的思考
用键盘输入一条命令
StarkWare:欲构建ZK“宇宙”
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Domestic API management artifact used by the company
[deep learning] how does deep learning affect operations research?
It is forbidden to copy content JS code on the website page
【729. 我的日程安排表 I】
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
Dare not buy thinking
中间表是如何被消灭的?