Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 342:
]]
local function is_dst_active (timestamp,utc_timestamp)
local invert; -- true when southern hemisphere
local dst_begin_ts, dst_end_ts; -- DST begin and end timestamps in UTC
Line 470:
timestamp = utc_timestamp + utc_offset; -- make local time timestamp
is_dst = is_dst_active(timestamp,utc_timestamp) -- set is_dst to 0 or 1
if 'no' == DST or is_dst == 0 then -- dst isn't active or not observed
|