Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 404:
local utc_offset; -- true when southern hemisphere
local DF; -- date format flag; the |df= parameter
local is_dst; -- wether or not dst is active
local is_dst = tonumber(is_dst_active(timestamp))▼
local data = 'Module:Time/data'..set_sandbox(frame) -- make a data module name; sandbox or live
data = mw.loadData (data); -- load the data module
Line 469:
utc_offset = get_utc_offset (); -- utc offset for specified timezone in seconds
timestamp = utc_timestamp + utc_offset; -- make local time timestamp
tz_abbr = tz.abbr; -- ... dst is not observed (|dst=no) show time as standard time▼
elseif 'always' == DST or is_dst == 1 then -- if dst is set to always or dst is active
timestamp = timestamp + 3600; -- add a hour for dst
tz_abbr = tz.dst_abbr; -- dst abbreviation
else -- error at is_dst_active
return is_dst -- return the error
end
|