当前位置:网站首页>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
边栏推荐
- Unity intelligent NPC production -- pre judgment walking (method 1)
- Panel panel of UI
- Unity sends messages and blocks indecent words
- Autocad-- Real Time zoom
- 669. Prune binary search tree ●●
- 775 Div.1 B. integral array mathematics
- Use assimp library to read MTL file data
- MD5绕过
- Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
- Introduction to JVM principle and process
猜你喜欢

"Measuring curve length" of CAD dream drawing

SQL set operation
![[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)](/img/1b/1fa2ebc9a6c5d271c9b39f5e508fb0.jpg)
[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)

【acwing】240. food chain

669. Prune binary search tree ●●

AutoCAD - stretching

AutoCAD - window zoom

Solution of circular dependency

Unity parallax infinite scrolling background

The 22nd Spring Festival Gala, an immersive stage for the yuan universe to shine into reality
随机推荐
AutoCAD - window zoom
Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
Solution of circular dependency
C # perspective following
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
Séparation et combinaison de la construction du système qualité
AutoCAD - command repetition, undo and redo
Create a pyGame window with a blue background
AutoCAD - full screen display
The first topic of ape Anthropology
775 Div.1 B. integral array mathematics
UE 虚幻引擎,项目结构
Pdf to DWG in CAD
The 22nd Spring Festival Gala, an immersive stage for the yuan universe to shine into reality
Emlog blog theme template source code simple good-looking responsive
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
中国金刚烷行业研究与投资预测报告(2022版)
【Leetcode】1352. 最后 K 个数的乘积
Research and investment forecast report of adamantane industry in China (2022 Edition)