Template:Datetime

From Archiveteam
Jump to navigation Jump to search


Help

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

Usage:

  • Date: {{datetime|ISO 8601 date}}
  • Date & Time: {{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}} or {{datetime|ISO 8601 date|24h time|UTC}}

Example:

  • Date:
    • {{datetime|2023-08-28}} turns into 2023-08-28
  • Date & Time:
    • {{datetime|2023-08-28|22:00|CEST|+2}} turns into 2023-08-28 22:00 CEST (UTC+2)
    • {{datetime|2023-08-28|22:00|CEST}} turns into 2023-08-28 22:00 CEST Zone offset not specified
    • {{datetime|2023-10-01|13:37}} turns into 2023-10-01 13:37 Zone not specified
    • {{datetime|2024-05-03|08:19|UTC}} turns into 2023-05-03 08:19 UTC
    • {{datetime|2024-05-03|08:19|utc}} turns into 2023-05-03 08:19 UTC