Template:H:Local time variables

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
MediaWiki logo
This page has been moved to Help:Variable on mediawiki.org.

Any modifications or additions to this page should be made on mediawiki.org instead.

Word Example Explanation
{{LOCALDAY}} 25 Displays the local day of the month in numeric form.
{{LOCALDAY2}} 25 Same as {{LOCALDAY}}, but with a leading zero (01 .. 31).
{{LOCALDAYNAME}} Friday Name of the day in the language of the project or English.
{{LOCALDOW}} 5 Same as {{LOCALDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{LOCALMONTH}} 09 The number 01 .. 12 of the month.
{{LOCALMONTHABBREV}} Sep Same as {{LOCALMONTH}}, but in abbreviated form as Jan .. Dec.
{{LOCALMONTHNAME}} September Same as {{LOCALMONTH}}, but in named form as January .. December.
{{LOCALTIME}} 14:53 The local time (00:00 .. 23:59).
{{LOCALHOUR}} 14 The local hour (00 .. 23).
{{LOCALWEEK}} 39 Number of the local week (1-53) according to ISO 8601 with no leading zero.
{{LOCALYEAR}} 2020 Returns the local year.
{{LOCALTIMESTAMP}} 20200925145324 ISO 8601 time stamp.