Get Whole Days from UTC
wd, ds = utc.wds(t)
Parameter | Type | Description |
---|---|---|
t |
integer/string | UTC or text |
Returns | Type | Description |
---|---|---|
wd |
integer | UTC time at 00:00:00 on this day |
ds |
integer | Days since 1970-01-01 |
e.g.
local wd,ds = utc.wds('2017-06-03 12:15:00')
--> wd = 1496448000
--> ds = 17320