当前位置:网站首页>PHP determines whether the current time has exceeded
PHP determines whether the current time has exceeded
2022-06-22 03:56:00 【one billion two million seven hundred and ten thousand and thir】
<?php
$sj="11:00:00"; // For example, the same day 11 The output before the point is calculated as the output of the previous day
$dtrq = date('Y-m-d ',time()); // Date of the day
$jz = strtotime($dtrq."$sj"); // Concatenate the time and convert it to a timestamp
$dq = time(); // Timestamp of current time
if($dq <= $jz){
// Determine the timestamp size
echo " No timeout ";
echo date("Y-m-d",strtotime("-1day",strtotime($dtrq))); // If not more than 11 spot , Get the date of the previous day
}else{
echo " Overtime ";
}
?>
边栏推荐
- Mqtt of NLog custom target
- How to write a detailed and professional software function test report
- The difference between quick failure and safe failure
- Dart异步是怎麼實現
- 【BP回归预测】基于matlab GA优化BP回归预测(含优化前的对比)【含Matlab源码 1901期】
- NLog自定义Target之MQTT
- MySQL 45 lecture learning notes (III) execution of SQL update statements
- Solend闹剧背后的「DeFi道德悖论」
- Beifu PLC string type string operation
- PHP output function
猜你喜欢

Shutter status management

嵌入式软件测试的经验经历和总结

3DE position of moving object

AI writes its own code to let agents evolve! The big model of openai has the flavor of "human thought"

Wechat applet ChAT expression

系统漏洞利用与提权
![[Niu Ke's questions -sql big factory interview questions] no1 An audio short video](/img/88/b9d5a6d6196f72cf6808d610e3b8fd.png)
[Niu Ke's questions -sql big factory interview questions] no1 An audio short video

Is the first woman coming to the 3A mobile game? Recognized by IGN, can "in shining name" stand out from the encirclement

其实很多人都在学电子

CentOS uses composer install to report an error - phpunitphppunit 8
随机推荐
Key program of TwinCAT 3 RS232 communication
About calling EditText in dialog
Fatal NI connect error 12170. Error reporting processing
How to quickly locate bugs and write test cases?
Comment dart asynchrone est implémenté
Hierarchical traversal of binary tree
【牛客刷题-SQL大厂面试真题】NO1.某音短视频
How to write a detailed and professional software function test report
Irregular naming
Fluentd语法配置
AI自己写代码让智能体进化!OpenAI的大模型有“人类思想”那味了
便捷自在掌握,vivo智能遥控功能实现全屋家电控制
LeetCode --- 1221. Split a string in balanced strings problem solving Report
Force buckle: implement a queue with two stacks
Solend闹剧背后的「DeFi道德悖论」
【写文章神器】标记语言Markdown的使用
SSM based blog system [with background management]
面试官:知道 Flutter 生命周期吗?
Fatal NI connect error 12170.报错处理
TCL华星发布全球首款0.016Hz超低频OLED穿戴设备屏