Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Timestamp

From Wikipedia, the free encyclopedia
(Redirected fromTemplate:Offset)

20251027135926

Template documentation[view] [edit] [history] [purge]

{{Timestamp}} is the template equivalent for themagic word (also known as variable){{CURRENTTIMESTAMP}}. The template invokes this variable when called. Due to MediaWiki and browser caching, these variables frequently show when the page wascached rather than the current time.

information Alternative: To generate aformatted date stamp with the current date and time, usefive tildes (~~~~~) to output:13:59, 27 October 2025 (UTC). In some templates, five tildes is the preferred way to add the date.

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)
{{TODAY}} (DMY)
{{Yesterday}}
{{Day-1}}
{{Tomorrow}}
{{Day+1}}
Month and year only{{Monthyear}}

{{DATE}} (prefixed by date=)

{{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 Sep
{{Nmonth}} produces Nov
{{Last month}} produces September 2025
{{Next month}} produces November 2025


Parser functions

[edit]

Individual templates

[edit]

Categories of templates

[edit]
The abovedocumentation istranscluded fromTemplate:Timestamp/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) 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:Timestamp&oldid=854596955"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp