Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
sync with live
Line 528:
mimics templates {{Time/GMT offset}}, {{Time/EST offset}}, etc.
 
{{#invoke:Time/sandbox|tz_offsetutc_offset|<tz>}} – for a stand-alone invoke
{{#invoke:Time/sandbox|tz_offsetutc_offset}} – for an invoke in a template (<tz> is first positional parameter in the template call)
 
where <tz> is a timezone abbreviation known to Module:Time/data
 
returns a UTC offset string suitable for use with the {{#time:}} parser function:
{{#time:H:i | {{#invoke:Time/sandbox|tz_offsetutc_offset|MST}} }}
{{#time:H:i | {{UTC_offset|MST}} }}