当前位置:网站首页>判断当天是当月的第几周
判断当天是当月的第几周
2022-07-06 03:46:00 【dongjinxin0621】
public function get_week_num(){
$time = strtotime('2022-05-01');
$wk_day = date('w', strtotime(date('Y-m-1 00:00:00', $time))) ? : 7; //今天周几
$day = date('d', $time) - (8 - $wk_day); //今天几号
echo $day <= 0 ? 1 : ceil($day / 7) + 1; //计算是第几个星期
die;
}
边栏推荐
- Schnuka: what is visual positioning system and how to position it
- [rust notes] 18 macro
- Indicator system of KQI and KPI
- Containerization Foundation
- Brush questions in summer -day3
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验9 PWM输出实验(学习笔记)
- MySQL 中的数据类型介绍
- Do you know cookies, sessions, tokens?
- C#(二十七)之C#窗体应用
- 2.2 STM32 GPIO operation
猜你喜欢
Suggestions for new engineer team members
C#(三十)之C#comboBox ListView treeView
C#(二十七)之C#窗体应用
Force buckle 1189 Maximum number of "balloons"
BUAA calculator (expression calculation - expression tree implementation)
Cubemx transplantation punctual atom LCD display routine
KS003基于JSP和Servlet实现的商城系统
P7735-[noi2021] heavy and heavy edges [tree chain dissection, line segment tree]
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
Ks008 SSM based press release system
随机推荐
[Massey] Massey font format and typesetting requirements
C#(二十九)之C#listBox checkedlistbox imagelist
[analysis of variance] single factor analysis and multi factor analysis
No qualifying bean of type ‘......‘ available
Alibaba testers use UI automated testing to achieve element positioning
简易博客系统
简述C语言中的符号和链接库
Recommended papers on remote sensing image super-resolution
Ks003 mall system based on JSP and Servlet
Pointer for in-depth analysis (problem solution)
SWC介绍
Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
Conditionally [jsonignore]
Yyds dry inventory what is test driven development
Record the process of reverse task manager
C form application of C (27)
Failure causes and optimization methods of LTE CSFB
Pytoch foundation - (1) initialization of tensors
Exchange bottles (graph theory + thinking)
Indicator system of KQI and KPI