Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 354:
end
end
--[[--------------------------< D S T _ A C T I V E >----------------------------------------------------------
Invokeable version of above
]]
local function dst_active (frame) -- call from #invoke
local args = getArgs (frame);
local data = 'Module:Time/data'..set_sandbox(frame) -- make a data module name; sandbox or live
data = mw.loadData (data); -- load the data module
cfg = data.cfg; -- get the configuration table
for k,v in pairs(dst_table) do -- add dst offsets to tz_aliases
Line 370 ⟶ 373:
end
tz = data[tz_aliases[args[1]]];
▲ for k,v in pairs(aliases_table) do -- add dst offsets to tz_aliases
tz = data[dst_tz[args[1]]];
tz = data[tz_data[args[1]]];
if not tz then
Line 384 ⟶ 381:
end
local timestamp = os_time + get_utc_offset (); return is_dst_active(timestamp,
end
Line 558 ⟶ 556:
]]
return {
time = time, dst_active = dst_active,
}
|