当前位置:网站首页>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
边栏推荐
- Emlog blog theme template source code simple good-looking responsive
- Thinking of 2022 American College Students' mathematical modeling competition
- 中国金刚烷行业研究与投资预测报告(2022版)
- [groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)
- Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
- AutoCAD - Document Management
- Unity and database
- Unity sends messages and blocks indecent words
- 【Leetcode】1352. Product of the last K numbers
- 54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
猜你喜欢
質量體系建設之路的分分合合
AutoCAD - stretching
3dsmax snaps to frozen objects
数论函数及其求和 待更新
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Emlog blog theme template source code simple good-looking responsive
Download the details and sequence of the original data access from the ENA database in EBI
LeetCode之单词搜索(回溯法求解)
Detailed introduction of OSPF header message
JVM 原理和流程简介
随机推荐
mysql审计日志归档
Rip notes [rip message security authentication, increase of rip interface measurement]
Emlog blog theme template source code simple good-looking responsive
2020-10-27
Detailed explanation of the ranking of the best universities
中国金刚烷行业研究与投资预测报告(2022版)
Out and ref functions of unity
AutoCAD - full screen display
Panel panel of UI
2021 electrician Cup - high speed rail traction power supply system operation data analysis and equivalent modeling ideas + code
AutoCAD - lengthening
【acwing】837. Number of connected block points
【Leetcode】1352. 最后 K 个数的乘积
AutoCAD -- dimension break
Unity sends messages and blocks indecent words
Minor spanning tree
Use assimp library to read MTL file data
Basic knowledge points of dictionary
xss注入
Redis 排查大 key 的4种方法,优化必备