1 Star 0 Fork 1

Molio-tan/openresty_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
time_handler.lua 261 Bytes
一键复制 编辑 原始数据 按行查看 历史
local os = require("os")
local deaddate = os.time({year = 2021, month = 07, day = 16, hour = 12, min = 00, sec = 00})
local nowdate = os.time()
local os_diff = os.difftime(nowdate, deaddate)
print(os_diff)
local diff = (nowdate - deaddate)/3600/24
print(diff)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Lua
1
https://gitee.com/molio/openresty_demo.git
git@gitee.com:molio/openresty_demo.git
molio
openresty_demo
openresty_demo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385