当前位置:网站首页>判断当天是当月的第几周
判断当天是当月的第几周
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;
}
边栏推荐
- Recommended papers on remote sensing image super-resolution
- Facebook等大厂超十亿用户数据遭泄露,早该关注DID了
- C#(三十)之C#comboBox ListView treeView
- Conditionally [jsonignore]
- Cubemx 移植正点原子LCD显示例程
- C (XXIX) C listbox CheckedListBox Imagelist
- Quick sort function in C language -- qsort
- In Net 6 CS more concise method
- KS003基于JSP和Servlet实现的商城系统
- JS Vanke banner rotation chart JS special effect
猜你喜欢
Pointer written test questions ~ approaching Dachang
SAP ALV cell level set color
KS008基于SSM的新闻发布系统
C mouse event and keyboard event of C (XXVIII)
2.13 weekly report
C language circular statement
Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
Data analysis Seaborn visualization (for personal use)
[slam] orb-slam3 parsing - track () (3)
在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
随机推荐
【Rust 笔记】18-宏
Overview of super-resolution reconstruction of remote sensing images
User perceived monitoring experience
Edcircles: a real time circle detector with a false detection control translation
[slam] lidar camera external parameter calibration (Hong Kong University marslab) does not need a QR code calibration board
Flask learning and project practice 9: WTF form verification
【SLAM】ORB-SLAM3解析——跟踪Track()(3)
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
Cf603e pastoral oddities [CDQ divide and conquer, revocable and search set]
Schnuka: what is visual positioning system and how to position it
1、工程新建
RT thread -- FTP of LwIP (2)
Oracle ORA error message
遥感图像超分辨重建综述
2. GPIO related operations
2、GPIO相关操作
Brush questions in summer -day3
Exness foreign exchange: the governor of the Bank of Canada said that the interest rate hike would be more moderate, and the United States and Canada fell slightly to maintain range volatility
[optimization model] Monte Carlo method of optimization calculation
[meisai] meisai thesis reference template