当前位置:网站首页>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 ";
}
?>
边栏推荐
- Window common shortcut keys
- LeetCode --- 1221. Split a String in Balanced Strings 解题报告
- Accumulate ERP global parameters, flexibly configure cost value rules, and complete accounting
- TCL Huaxing released the world's first 0.016hz ultra-low frequency OLED wearable device screen
- About calling EditText in dialog
- Flutter 颜色渐变及模仿淘宝渐变关注按钮
- Replacement has 2 rows, data has 0, to solve how R language dynamically generates dataframes
- Irregular naming
- Interviewer: do you know the life cycle of flutter?
- Join waits for synchronization results from multiple threads
猜你喜欢

Larave 数据库备份 定时任务

Balanced binary tree -- adjusting transformation rules

基于SSM的博客系统【带后台管理】

Use of markdown markup language

Flutter 颜色渐变及模仿淘宝渐变关注按钮

Django 学习--- 模型与数据库操作(二)

内网穿透

Mysql 45讲学习笔记(二)SQL更新语句的执行

积加ERP全局参数灵活配置成本取值规则,核算全面到位

Official competition volume and "answer" of "Cyberspace Security" of secondary vocational group in 2019 national vocational college skills competition
随机推荐
Blazor University (31) form - Validation
Ora-48132 ora-48170 appears in the alarm log
H index problem
【写文章神器】标记语言Markdown的使用
Mysql 45讲学习笔记(四)索引
GDB commissioning, use and sorting
128 traps - source code analysis
Is the first woman coming to the 3A mobile game? Recognized by IGN, can "in shining name" stand out from the encirclement
Mysql 45讲学习笔记(二)SQL更新语句的执行
PLC program variable definition and hardware IO Association in Bifu twincat3
Beifu PLC string type string operation
基于SSM的博客系统【带后台管理】
CAPL learning path - Ethernet function
微信小程序 上传七牛云 laravel
Es next new features
Cloud native architecture (03) - Architecture
Online text batch inversion by line tool
L'avenir est venu: l'âge du nuage
Laravel realizes file (picture) uploading
MySQL 45 lecture learning notes (II) execution of SQL update statements