当前位置:网站首页>Lua determines whether the current time is the time of the day
Lua determines whether the current time is the time of the day
2022-07-05 04:56:00 【Meteor spot】
function isToday(timestamp)
local today = os.date("*t")
local secondOfToday = os.time({day=today.day, month=today.month,year=today.year, hour=0, minute=0, second=0})
if timestamp >= secondOfToday and timestamp < secondOfToday + 24 * 60 * 60 then
return true
else
return false
end
end
边栏推荐
猜你喜欢

C4D simple cloth (version above R21)

次小生成树

【acwing】528. cheese

AutoCAD - set layer

Autocad-- Real Time zoom

2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis

669. 修剪二叉搜索树 ●●

Special information | finance, accounting, audit - 22.1.23

AutoCAD - full screen display
![Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]](/img/e7/f699ee982ea325b8d04f8bd467a559.jpg)
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
随机推荐
Basic knowledge points of dictionary
54. Spiral matrix & 59 Spiral matrix II ●●
AutoCAD - lengthening
MySQL audit log archiving
[groovy] closure (closure as function parameter | code example)
Detailed introduction of OSPF header message
Understand encodefloatrgba and decodefloatrgba
Solution of circular dependency
2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis
SQLServer 存储过程传递数组参数
中国金刚烷行业研究与投资预测报告(2022版)
Inline built-in function
Redis has four methods for checking big keys, which are necessary for optimization
2021-10-29
AutoCAD - command repetition, undo and redo
mysql审计日志归档
Unity writes timetables (without UI)
How to choose a panoramic camera that suits you?
Pdf to DWG in CAD
XSS injection