当前位置:网站首页>时间戳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"))
边栏推荐
- 数据访问 - EntityFramework集成
- [brush questions] effective Sudoku
- Mongodb getting started Tutorial Part 04 mongodb client
- OneForAll安装使用
- How to uninstall MySQL cleanly
- How can programmers improve their situation?
- The difference between searching forward index and inverted index
- Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
- 2020-2022两周年创作纪念日
- Migrate /home partition
猜你喜欢

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

Today's sleep quality record 79 points

Solution of vant tabbar blocking content

【深度学习】深度学习如何影响运筹学?

Oneforall installation and use

用键盘输入一条命令

Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)

Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)

OneForAll安装使用

深潜Kotlin协程(二十一):Flow 生命周期函数
随机推荐
Cartoon: what is service fusing?
挖财股票开户安全吗?怎么开股票账户是安全?
數據訪問 - EntityFramework集成
二叉树相关OJ题
Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
Keras crash Guide
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
[brush title] goose factory shirt problem
树莓派4b安装Pytorch1.11
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
Research and development efficiency measurement index composition and efficiency measurement methodology
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
Solution of vant tabbar blocking content
单商户 V4.4,初心未变,实力依旧!
2020-2022两周年创作纪念日
Summary of PHP pseudo protocol of cisp-pte
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
Yarn common commands