当前位置:网站首页>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"))
边栏推荐
- 【 brosser le titre 】 chemise culturelle de l'usine d'oies
- 国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
- PHP人才招聘系统开发 源代码 招聘网站源码二次开发
- Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
- Seaborn绘制11个柱状图
- Jarvis OJ Flag
- 【刷题篇】有效的数独
- Writing method of twig array merging
- Jarvis OJ Webshell分析
- 清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
猜你喜欢

Pspnet | semantic segmentation and scene analysis

StarkWare:欲构建ZK“宇宙”

The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough

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

How does win11 change icons for applications? Win11 method of changing icons for applications

Jarvis OJ Telnet Protocol

Summary of methods for finding intersection of ordered linked list sets

【729. 我的日程安排錶 I】

怎样在电脑上设置路由器的WiFi密码

美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
随机推荐
Jarvis OJ Flag
HiEngine:可媲美本地的云原生内存数据库引擎
DenseNet
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats
调查显示传统数据安全工具面对勒索软件攻击的失败率高达 60%
Summary of PHP pseudo protocol of cisp-pte
搜索 正排索引 和 倒排索引 区别
Summary of methods for finding intersection of ordered linked list sets
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
The difference between searching forward index and inverted index
Accès aux données - intégration du cadre d'entité
Sentinel flow guard
Jarvis OJ shell流量分析
树莓派4b安装Pytorch1.11
WSL2.0安装
【刷题篇】鹅厂文化衫问题
中间表是如何被消灭的?
中国广电正式推出5G服务,中国移动赶紧推出免费服务挽留用户
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)