当前位置:网站首页>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
边栏推荐
- 3dsmax scanning function point connection drawing connection line
- Chinese notes of unit particle system particle effect
- Unity connects to the database
- 2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
- 2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
- Panel panel of UI
- 54. Spiral matrix & 59 Spiral matrix II ●●
- 質量體系建設之路的分分合合
- 2021-10-29
- This article is good
猜你喜欢

Séparation et combinaison de la construction du système qualité

Special information | real estate and office buildings - 22.1.9

Solutions and answers for the 2021 Shenzhen cup

3dsmax scanning function point connection drawing connection line

AutoCAD - set layer
![[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)](/img/aa/3c8b7b27e322417777d1315b9a5a8f.jpg)
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)

【Leetcode】1352. Product of the last K numbers

【acwing】240. food chain

How to choose a panoramic camera that suits you?

Understand encodefloatrgba and decodefloatrgba
随机推荐
【acwing】528. cheese
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
【acwing】837. Number of connected block points
This article is good
Panel panel of UI
Inline built-in function
Wan broadband access technology V EPON Technology
Emlog blog theme template source code simple good-looking responsive
China as resin Market Research and investment forecast report (2022 Edition)
AutoCAD -- dimension break
AutoCAD - full screen display
Common database statements in unity
2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis
用 Jmeter 工具做个小型压力测试
How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
Understand encodefloatrgba and decodefloatrgba
Judge the position of the monster in the role under unity3d
Detailed explanation of the ranking of the best universities
AutoCAD - graphic input and output
中国金刚烷行业研究与投资预测报告(2022版)