当前位置:网站首页>时间戳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"))
边栏推荐
- 单商户 V4.4,初心未变,实力依旧!
- 【刷题篇】有效的数独
- 【刷題篇】鹅廠文化衫問題
- The memory of a Zhang
- Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
- [deep learning] how does deep learning affect operations research?
- "21 days proficient in typescript-3" - install and build a typescript development environment md
- PSPNet | 语义分割及场景分析
- Games101 notes (II)
- 【深度学习】深度学习如何影响运筹学?
猜你喜欢
Jarvis OJ Webshell分析
Android privacy sandbox developer preview 3: privacy, security and personalized experience
How to set the WiFi password of the router on the computer
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
Deep learning plus
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Starkware: to build ZK "universe"
[deep learning] how does deep learning affect operations research?
Jarvis OJ shell流量分析
Summary of PHP pseudo protocol of cisp-pte
随机推荐
Sentinel flow guard
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
[brush title] goose factory shirt problem
Cartoon: what is blue-green deployment?
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Win11如何给应用换图标?Win11给应用换图标的方法
Cs231n notes (bottom) - applicable to 0 Foundation
Oneforall installation and use
文件操作--I/O
Data verification before and after JSON to map -- custom UDF
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
如何将mysql卸载干净
【深度学习】深度学习如何影响运筹学?
Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
Jarvis OJ 简单网管协议
JSON转MAP前后数据校验 -- 自定义UDF