当前位置:网站首页>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
边栏推荐
- 【acwing】240. food chain
- 2020-10-27
- Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
- 3dsmax common commands
- Unity get component
- 质量体系建设之路的分分合合
- AutoCAD - Zoom previous
- Judge the position of the monster in the role under unity3d
- SQL set operation
- 2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
猜你喜欢

Number theoretic function and its summation to be updated

"Measuring curve length" of CAD dream drawing

2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem

Flutter tips: various fancy nesting of listview and pageview

UE4/UE5 虚幻引擎,材质篇(三),不同距离的材质优化

AutoCAD - scaling

Solutions and answers for the 2021 Shenzhen cup

AutoCAD - graphic input and output

Redis 排查大 key 的4种方法,优化必备

2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
随机推荐
AutoCAD - isometric annotation
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
Redis 排查大 key 的4种方法,优化必备
3dsmax2018 common operations and some shortcut keys of editable polygons
【acwing】837. Number of connected block points
AutoCAD - scaling
Redis has four methods for checking big keys, which are necessary for optimization
Understand encodefloatrgba and decodefloatrgba
2022/7/2做题总结
C # perspective following
AutoCAD - Zoom previous
Introduce Hamming distance and calculation examples
中国AS树脂市场调研与投资预测报告(2022版)
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
AutoCAD - Document Management
2021 electrician cup (the 12th "China Society of electrical engineering Cup" National Undergraduate electrician mathematical modeling) detailed ideas + codes + references
Unity sends messages and blocks indecent words
Solution of circular dependency
Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)