当前位置:网站首页>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"))
边栏推荐
- 养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- OneForAll安装使用
- 机器学习编译第2讲:张量程序抽象
- Data access - entityframework integration
- Jarvis OJ 简单网管协议
- 网站页面禁止复制内容 JS代码
- Cs231n notes (bottom) - applicable to 0 Foundation
- Win11如何给应用换图标?Win11给应用换图标的方法
- 极坐标扇图使用场景与功能详解
猜你喜欢
随机推荐
How can programmers improve their situation?
时间戳strtotime前一天或后一天的日期
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
Summary of PHP pseudo protocol of cisp-pte
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
[es6] 模板字符串内添加if判断或添加三元运算符判断
Solution of vant tabbar blocking content
Jarvis OJ shell流量分析
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Benji Banas membership pass holders' second quarter reward activities update list
调查显示传统数据安全工具面对勒索软件攻击的失败率高达 60%
Summary of methods for finding intersection of ordered linked list sets
今日睡眠质量记录79分
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
PHP 严格模式
深潜Kotlin协程(二十一):Flow 生命周期函数
Learnopongl notes (II) - Lighting
PHP strict mode
二叉树相关OJ题
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月








