Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 357:
--[[--------------------------< D S T _ A C T I V E >----------------------------------------------------------
 
Invokeable version of above. This function takes one parameter.
1. the time zone abbreviation (positional or 1=)
 
]]
Line 366 ⟶ 367:
data = mw.loadData (data); -- load the data module
cfg = data.cfg; -- get the configuration table
args[1] = args[1]:lower(); -- lowecase
args[1] = args[1] or 'utc' -- default to utc
Line 389 ⟶ 392:
--[=[-------------------------< T I M E >----------------------------------------------------------------------
 
This templatefunction takes several parameters (some positonal, some not); none are required:
1. the time zone abbreviation/UTC offset (positional, always the first unnamed parameter)
2. a date format flag; second positional parameter or |df=; can have one of several values