Difference between revisions of "Template:Datetime"

From Archiveteam
Jump to navigation Jump to search
(add timezone, help text)
m
Line 1: Line 1:
{{#formatdate:{{{1}}}}} {{{2}}} {{{3}}} (UTC{{{4}}})<noinclude>
{{#formatdate:{{{1}}}}} {{{2}}} {{{3}}} (UTC{{{4}}})<noinclude>
== Help ==
== Help ==
Takes a date and time and formats it consistently across the wiki.
Takes a date and time and formats it consistently across the wiki, using the user's preferences for the date portion.


Usage: <code><nowiki>{{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}</nowiki></code>
Usage: <code><nowiki>{{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}</nowiki></code>

Revision as of 21:35, 1 September 2023

{{{1}}} {{{2}}} {{{3}}} (UTC{{{4}}})

Help

Takes a date and time and formats it consistently across the wiki, using the user's preferences for the date portion.

Usage: {{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}

Example: {{datetime|2023-08-28|22:00|CEST|+2}} turns in to 2023-08-28 22:00 CEST (UTC+2).