Template:Date and time templates

{{For|the magic words with the same or similar names|MediaWikiWiki:Help:Magic words#Date and time}}

{{align|left|[{{edit|Template:Date and time templates}}] all subsections that follow:}}

{{notice|1={{#switch:{{FULLPAGENAME}}

|Template:Date and time templates=These templates do not put a working clock on your page.

|#default=This template does not put a working clock on your page.}} The clock will not update the time on your screen every minute. Instead, it records the date and time that the page was most recently edited or purged.

If you want a clock that constantly updates, then go to Special:Preferences#mw-prefsection-gadgets and enable the Appearance item, "Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page".}}

= Multiple units of time =

class="wikitable"

|+

!Type

!Adjustable

!Current

!Last

!Next

Date and time

|{{tl|time}}

|{{tl|Currentdate}} (MDY)
{{tl|Plain now}} (DMY)
{{tl|Now}} (DMY in a complete sentence)
{{tl|Simple now}}

|

|

Date only

|{{tl|Dateonly}}
{{tl|Datedow}}
(Has the day of the week)

|{{tl|Date}} (Chose format)
{{tl|DATE}} (prefixed by date=)
{{tl|TODAY}} (DMY)

|{{tl|Yesterday}}
{{tl|Day-1}}

|{{tl|Tomorrow}}
{{tl|Day+1}}

Month and year only

|

|{{tl|Monthyear}}

|{{tl|Monthyear-1}}

|{{tl|Monthyear+1}}

Time only

|{{tl|Timeonly}}

|{{tl|CURRENTTIME}} (12 h format)
{{tl|CURRENTTIME24}} (24 h format)

|

|

Banners

|

|{{tl|Right now}}
(Blue with time and number of Wikipedia articles)

|

|

Timestamp

|

|{{tl|Timestamp}}
(Format YYYYMMDDhhmmss)

|

|

----

= Single units of time =

class="wikitable"

|+

!Unit of time

!Adjustable

!Current

!Last

!Next

Second

|

|{{Template link|CURRENTSECOND}}

|

|

Minute

|

|{{Template link|CURRENTMINUTE}}

|

|

Hour

|

|{{Magic word link|CURRENTHOUR}}

|

|

Week

|

|{{Magic word link|CURRENTWEEK}}
{{Template link|CURRENTWEEKOFMONTH}}

|

|

Day of Week

|{{Template link|DAYOFWEEK}}

|{{Magic word link|CURRENTDAYNAME}}
{{Template link|CURRENTWEEKDAYABBREV}}
{{Template link|CURRENTWEEKDAY}}

|

|

Month

|{{Template link|MONTHNAME}}
{{Template link|MONTHABBREV}}
{{Template link|MONTHNUMBER}}
{{Template link|MONTH}} (zero padded)

|{{Magic word link|CURRENTMONTHNAME}}
{{Magic word link|CURRENTMONTHABBREV}}
{{Magic word link|CURRENTMONTH1}}
{{Template link|CURRENTMONTHDAYS}}

|{{Template link|LASTMONTHNAME}}

|{{Template link|NEXTMONTHNAME}}

Day of Month

|

|{{Magic word link|CURRENTDAY}}
{{Magic word link|CURRENTDAY2}} (zero padded)

|

|

Year

|

|{{Template link|CURRENTYEARCC}}
{{Template link|CURRENTYEARYY}}
{{Template link|CURRENTISOYEAR}}
{{Magic word link|CURRENTYEAR}}

|{{Template link|LASTYEAR}}

|{{Template link|NEXTYEAR}}

Day of Year

|

|{{Template link|CURRENTDAYOFYEAR}}

|

|

Decade

|{{Template link|DECADE}}

|{{Template link|CURRENTDECADE}}

|

|

Century

|{{Template link|Century}}

|{{Template link|CURRENTCENTURY}}

|

|

MILLENNIUM

|{{Template link|MILLENNIUM}}

|

|

|

= Date and time templates made for substitution: =

Month:
{{tl|Lmonth}} produces {{Lmonth}}
{{tl|Nmonth}} produces {{Nmonth}}
{{tl|Last month}} produces {{Last month}}
{{tl|Next month}} produces {{Next month}}

----

== Parser functions ==

== Individual templates ==

  • {{tl|Calendar}}
  • {{tl|Calendar clock with Wikipedia stats}}
  • {{tl|Clock}}
  • {{tl|Digital clock}}
  • {{tl|Digital clock and date}}
  • {{tl|Infobox calendar date today}}
  • {{{{u|Raph Williams65/digiclock}}}}

== Categories of templates ==