当前位置:网站首页>PHP generate schedule
PHP generate schedule
2022-06-12 10:20:00 【Qu Shuai 369】
public function work() {
$y = 2021;
$m = 4;
$t = date('t',strtotime($y.'-'.$m.'-1'));
$arr = array();
$weekarray=array(" Japan "," One "," Two "," 3、 ... and "," Four "," 5、 ... and "," 6、 ... and ");
for ($i=1;$i<=$t;$i++) {
$time = strtotime($y.'-'.$m.'-'.$i);
$a['date1'] = date('Y-m-d H:i:s',$time);
$a['date2'] = date('Y-m-d H:i:s',$time+86399);
$a['day'] = $i;
$a['week'] = $weekarray[date('w',$time)];
$arr[] = $a;
}
dump($arr);
}
边栏推荐
- [Wayland] Weston multi screen display
- 2021-09-13
- PLC如何自行构造移位功能块(FC)
- Circuitbreaker fuse of resilience4j - circuitbreakerregistry register
- 【926. 将字符串翻转到单调递增】
- [CEGUI] resource loading process
- Dynamic proxy
- Using C language code to realize factory LCD RGB test program
- Data processing and visualization of machine learning [iris data classification | feature attribute comparison]
- Explication du principe d'appariement le plus à gauche de MySQL
猜你喜欢
![[926. flip the string to monotonic increment]](/img/fa/1838405693aa0998694d4895a611c2.png)
[926. flip the string to monotonic increment]

FPGA VGA display based on de2-115 platform

QT custom window fillets
![[Wayland] Wayland introduction and customized guidance](/img/4e/655d484ca7787f39aab446fdb1ae74.jpg)
[Wayland] Wayland introduction and customized guidance

Circuitbreaker fuse of resilience4j -- Measurement of circuitbreakermetrics index

Circuitbreaker fuse of resilience4j - circuitbreakerevent event

Basic use of scratch

Implementation principle of redisson distributed lock
SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000

Shen Min, CIO of science and technology innovator Digital China Group: the best practice model is failing, and open source accelerates Distributed Innovation
随机推荐
2022淘宝618超级喵运会怎么玩?2022淘宝618喵运会玩法技巧
[CEGUI] font resource loading process
Qt自定义窗口圆角
MySQL VI Database lock
Auto. JS learning note 9: basic methods such as using the script engine, starting the script file with the specified path, and closing
MQTT 协议中文版
MySQL 4 Database table storage structure & tablespace
Cookie object
2021-09-13
C 语言仅凭自学能到什么高度?
Download Notepad++
redis学习记录:字典(dict)源码分析
C break continue return
2021-02-22
Download Notepad++
PostgreSQL uses stored procedures to splice multiple tables and query data
CONDA install tensorflow test tensorflow
SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000
How PLC constructs shift function block (FC) by itself
Circuitbreaker fuse of resilience4j - circuitbreakerevent event