当前位置:网站首页>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
边栏推荐
- Séparation et combinaison de la construction du système qualité
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- Error statuslogger log4j2 could not find a logging implementation
- Sqlserver stored procedures pass array parameters
- Number theoretic function and its summation to be updated
- Recherche de mots pour leetcode (solution rétrospective)
- Leetcode word search (backtracking method)
- The difference between heap and stack
- Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
- 質量體系建設之路的分分合合
猜你喜欢

stm32Cubemx(8):RTC和RTC唤醒中断

2021 huashubei mathematical modeling idea + reference + paper

Establish cloth effect in 10 seconds

用 Jmeter 工具做个小型压力测试

Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套

The 22nd Spring Festival Gala, an immersive stage for the yuan universe to shine into reality
![[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

JVM 原理和流程简介

AutoCAD - set layer
随机推荐
C4D simple cloth (version above R21)
AutoCAD - stretching
3dsmax scanning function point connection drawing connection line
Emlog博客主题模板源码简约好看响应式
计组笔记(1)——校验码、原补码乘除计算、浮点数计算
Recherche de mots pour leetcode (solution rétrospective)
Out and ref functions of unity
Redis 排查大 key 的4种方法,优化必备
This article is good
Basic knowledge points
China polyurethane rigid foam Market Research and investment forecast report (2022 Edition)
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link
Detailed explanation of the ranking of the best universities
Minor spanning tree
54. Spiral matrix & 59 Spiral matrix II ●●
中国AS树脂市场调研与投资预测报告(2022版)
Inline built-in function
Download the details and sequence of the original data access from the ENA database in EBI
Interface joint commissioning test script optimization V5.0 (end)
【acwing】836. Merge sets