Template:Date and time templates
{{For|the magic words with the same or similar names|MediaWikiWiki:Help:Magic words#Date and time}}
{{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) | | |
Date only
|{{tl|Dateonly}} |{{tl|Date}} (Chose format) |{{tl|Yesterday}} |{{tl|Tomorrow}} |
Month and year only
| |{{tl|Monthyear}} |{{tl|Monthyear-1}} |{{tl|Monthyear+1}} |
Time only
|{{tl|Timeonly}} |{{tl|CURRENTTIME}} (12 h format) | | |
Banners
| |{{tl|Right now}} | | |
Timestamp
| |{{tl|Timestamp}} | | |
----
= 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}} | | |
Day of Week
|{{Template link|DAYOFWEEK}} |{{Magic word link|CURRENTDAYNAME}} | | |
Month
|{{Template link|MONTHNAME}} |{{Magic word link|CURRENTMONTHNAME}} |{{Template link|LASTMONTHNAME}} |{{Template link|NEXTMONTHNAME}} |
Day of Month
| |{{Magic word link|CURRENTDAY}} | | |
Year
| |{{Template link|CURRENTYEARCC}} |{{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 ==
- mw:Special:MyLanguage/time permits a custom time specifier string, similar to the C date and time 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}} }}