Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 336:
end
 
--[[--------------------------< I S _ D S T _ A C T I V E >----------------------------------------------------------
 
Return 1 of dst is active or 0 if it's not
Line 342:
]]
local function _dst_activeis_dst_active (frametimestamp)
local invert; -- true when southern hemisphere
local dst_begin_ts, dst_end_ts; -- DST begin and end timestamps in UTC
Line 404:
local utc_offset; -- true when southern hemisphere
local DF; -- date format flag; the |df= parameter
local is_dst = tonumber(dst_activeis_dst_active(frametimestamp))
local data = 'Module:Time/data'..set_sandbox(frame) -- make a data module name; sandbox or live
data = mw.loadData (data); -- load the data module