Software /
code /
prosody
Comparison
util/datetime.lua @ 8555:4f0f5b49bb03
vairious: Add annotation when an empty environment is set [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Feb 2018 20:06:26 +0100 |
parent | 7259:d8300985f2bb |
child | 9698:e616c37756b3 |
comparison
equal
deleted
inserted
replaced
8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
---|---|
13 local os_time = os.time; | 13 local os_time = os.time; |
14 local os_difftime = os.difftime; | 14 local os_difftime = os.difftime; |
15 local tonumber = tonumber; | 15 local tonumber = tonumber; |
16 | 16 |
17 local _ENV = nil; | 17 local _ENV = nil; |
18 -- luacheck: std none | |
18 | 19 |
19 local function date(t) | 20 local function date(t) |
20 return os_date("!%Y-%m-%d", t); | 21 return os_date("!%Y-%m-%d", t); |
21 end | 22 end |
22 | 23 |