Template:Time/doc: Difference between revisions

m
no edit summary
(Created page with "{{Lua| *Module:Time *Module:Time/data}} This template displays the current time in a parameter-specified time zone. The time is calculated based on the...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 22:
::{{para|df|iso}} – renders the date/time in a form roughly adhering to the [[ISO 8601]] format (seconds omitted)
:::{{time|MST|iso}}
::{{para|df|y}} – legacy {{tldtlx|time}} parameter, same as {{para|df|dmy}}
::{{para|df|12}} – time-only display 12-hour am/pm format
:::{{time|MST|12}}
Line 126:
Daylight saving time (DST) calculations are automatic for those time zones where it is observed. There are locales that do not observe DST within time zones where it is generally observed. To render the correct time for a non-observant locale, set {{para|dst|no}}:
:<code><nowiki>{{time|MST|dst=no}}</nowiki></code>
::{{time|MST|dst=no}} – [[w:en:Time in Arizona|time in Arizona]]
:<code><nowiki>{{time|MST}}</nowiki></code>
::{{time|MST}} – but, time on the [[w:en:Navajo Nation|Navajo Nation]] in Arizona
Line 168:
::<code><month name></code> – any of the month names 'January', 'February', 'March', etc.; capitalization is not important but otherwise must be spelled correctly; abbreviations not supported
:<code><nowiki>dst_ends = ''</nowiki></code> – (required if <code>dst_begins</code> is specified) same as <code>dst_begins</code>
:<code><nowiki>dst_time = ''</nowiki></code> – (required if <code>dst_begins</code> is specified) the time that daylight saving time begins; usually local time; when DST begins at a specified time UTC ([[w:en:European Summer Time|European Summer Time]] for example) use: <code>dst_time = 'hh:mm UTC'</code>; four digits and the colon are required
:<code><nowiki>dst_e_time = ''</nowiki></code> – the time that daylight saving time ends if different from the time it begins; usually local daylight saving time ; when DST ends at a specified time UTC use: <code>dst_e_time = 'hh:mm UTC'</code>; four digits and the colon are required
:<code><nowiki>article = ''</nowiki></code> – (required) the title of a Wikipedia article that is appropriate to the timezone; do not include wikimarkup