当前位置:网站首页>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"))
边栏推荐
- Solution of vant tabbar blocking content
- 网站页面禁止复制内容 JS代码
- 解决CMakeList find_package找不到Qt5,找不到ECM
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- You should have your own persistence
- [echart] resize lodash 实现窗口缩放时图表自适应
- Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
- 阿掌的怀念
- 挖财股票开户安全吗?怎么开股票账户是安全?
- 今日睡眠质量记录79分
猜你喜欢
中间表是如何被消灭的?
Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
Benji Banas membership pass holders' second quarter reward activities update list
Jarvis OJ webshell analysis
[61dctf]fm
极坐标扇图使用场景与功能详解
Today's sleep quality record 79 points
Learnopongl notes (II) - Lighting
Summary of methods for finding intersection of ordered linked list sets
Cs231n notes (bottom) - applicable to 0 Foundation
随机推荐
File operation --i/o
机器学习编译第2讲:张量程序抽象
面对新的挑战,成为更好的自己--进击的技术er
Pspnet | semantic segmentation and scene analysis
[echart] resize lodash 实现窗口缩放时图表自适应
[js] skill simplification if empty judgment
Dare not buy thinking
【729. 我的日程安排錶 I】
What is the difference between EDI license and ICP business license
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
Learnopongl notes (I)
Sentinel-流量防卫兵
DeSci:去中心化科学是Web3.0的新趋势?
JSON转MAP前后数据校验 -- 自定义UDF
Summary of PHP pseudo protocol of cisp-pte
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Writing method of twig array merging
composer安装报错:No composer.lock file present.
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
數據訪問 - EntityFramework集成