相关文章推荐
俊秀的跑步鞋
·
window.open(url)多次打开下载 ...
·
1 年前
·
睡不着的豌豆
·
C# - 最新和改进的 C# 6.0 | ...
·
1 年前
·
暴走的海龟
·
CreateProcessAsUser ...
·
1 年前
·
憨厚的篮球
·
Visual Studio Code ...
·
1 年前
·
酷酷的松鼠
·
使用gradle将maven的pom.xml ...
·
1 年前
·
Code
›
PHP 获取上个月1号和上个月最后一天时间戳,下个月1号和下个月最后一天的时间戳 - 冷晨
date
php
时间戳
strtotime
https://www.cnblogs.com/lcxin/p/10812705.html
玩足球的黄花菜
1 年前
$lastStartDay
=
$lastyear
. '-' .
$lastmonth
. '-1'
;
$lastEndDay
=
$lastyear
. '-' .
$lastmonth
. '-' .
date
('t',
strtotime
(
$lastStartDay
));
$b_time
=
strtotime
(
$lastStartDay
);
//
上个月的月初时间戳
$e_time
=
strtotime
(
$lastEndDay
);
//
上个月的月末时间戳 // 下个月的时间戳
$thismonth
=
date
('m'
);
$thisyear
=
date
('Y'
);
if
(
$thismonth
== 12
) {
$lastmonth
= 1
;
$lastyear
=
$thisyear
+ 1
; }
else
{
$lastmonth
=
$thismonth
+ 1
;
$lastyear
=
$thisyear
;
$lastStartDay
=
$lastyear
. '-' .
$lastmonth
. '-1'
;
$lastEndDay
=
$lastyear
. '-' .
$lastmonth
. '-' .
date
('t',
strtotime
(
$lastStartDay
));
$b_time
=
strtotime
(
$lastStartDay
);
//
下个月的月初时间戳
$e_time
=
strtotime
(
$lastEndDay
);
//
下个月的月末时间戳
推荐文章
俊秀的跑步鞋
·
window.open(url)多次打开下载链接被浏览器拦截问题解决方案,js实现循环访问多个下载链接_nanke_yh的博客-CSDN博客
1 年前
睡不着的豌豆
·
C# - 最新和改进的 C# 6.0 | Microsoft Learn
1 年前
暴走的海龟
·
CreateProcessAsUser failed due to: A required privilege is not held by the client
1 年前
憨厚的篮球
·
Visual Studio Code missing stddef.h compiling GLFW hello example. - Microsoft Q&A
1 年前
酷酷的松鼠
·
使用gradle将maven的pom.xml转换成gradle的build.gradle_qq275949034qq的博客-CSDN博客
1 年前