Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Clock

From Wikipedia, the free encyclopedia
UTC date and time:
Thursday
1
May
7:40 pmUTC
Purge
Template documentation[view] [edit] [history] [purge]
This template doesnot put a working clock on your page.
This template adds a clock that shows the time when the page was last updated (or re-cached) and will not update each minute.
If you do want a clock that constantly updates, then go toyour Preferences and enable the item:
"Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page" under Appearance.

See also

[edit]
For themagic words with the same or similar names, seeMediaWikiWiki:Help:Magic words § Date and time.

Multiple units of time

[edit]
TypeAdjustableCurrentLastNext
Date and time{{time}}{{Currentdate}} (MDY)
{{Plain now}} (DMY)
{{Now}} (DMY in a complete sentence)
{{Simple now}}
Date only{{Dateonly}}
{{Datedow}}
(Has the day of the week)
{{Date}} (Chose format)
{{DATE}} (prefixed by date=)
{{TODAY}} (DMY)
{{Yesterday}}
{{Day-1}}
{{Tomorrow}}
{{Day+1}}
Month and year only{{Monthyear}}{{Monthyear-1}}{{Monthyear+1}}
Time only{{Timeonly}}{{CURRENTTIME}} (12 h format)
{{CURRENTTIME24}} (24 h format)
Banners{{Right now}}
(Blue with time and number of Wikipedia articles)
Timestamp{{Timestamp}}
(Format YYYYMMDDhhmmss)

Single units of time

[edit]
Unit of timeAdjustableCurrentLastNext
Second{{CURRENTSECOND}}
Minute{{CURRENTMINUTE}}
Hour{{CURRENTHOUR}}
Week{{CURRENTWEEK}}
{{CURRENTWEEKOFMONTH}}
Day of Week{{DAYOFWEEK}}{{CURRENTDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
Month{{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
{{CURRENTMONTHNAME}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTH1}}
{{CURRENTMONTHDAYS}}
{{LASTMONTHNAME}}{{NEXTMONTHNAME}}
Day of Month{{CURRENTDAY}}
{{CURRENTDAY2}} (zero padded)
Year{{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
{{CURRENTYEAR}}
{{LASTYEAR}}{{NEXTYEAR}}
Day of Year{{CURRENTDAYOFYEAR}}
Decade{{DECADE}}{{CURRENTDECADE}}
Century{{Century}}{{CURRENTCENTURY}}
MILLENNIUM{{MILLENNIUM}}

Date and time templates made for substitution:

[edit]

Month:
{{Lmonth}} produces Apr
{{Nmonth}} produces Jun
{{Last month}} produces April 2025
{{Next month}} produces June 2025


Parser functions

[edit]

Individual templates

[edit]

Categories of templates

[edit]
The abovedocumentation istranscluded fromTemplate:Clock/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Clock&oldid=1209152524"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp