Template:Time

From WikiMe @ iroiro.io
Revision as of 23:53, 27 August 2018 by ink>Heddy (revised documentation)
Jump to: navigation, search

This template is used to keep time formatted consistently across the wiki.

It converts time input to Coordinated Universal Time (UTC) and displays a link to a time conversion service for users to click and see when an event happened in their local time zone.

Complete documentation of the #time parser function that this template uses can be found at Help:Extension:ParserFunctions.

Usage

Enter time in the format: yyyy-mm-dd hh:mm time zone.

The time 2025-12-22 08:19 UTC is entered as {{time|2025-12-22 08:19 UTC}}.

The template will convert non-UTC input to UTC.

{{time|2018-01-13 15:00 JST}} will be converted to 06:00 UTC.

The template alone will display the current time. The time will not be accurate unless the page cache was refreshed recently.

Entering {{time}} results in 08:19 UTC.

If the date is not needed, time can be entered alone. The resulting link will assume today's date.

08:19 UTC is entered as {{time|08:19 UTC}}.

Relative time is accepted.

If 2025-12-22 08:19 UTC were the current time, entering {{time|+2 hours}} would result in 10:19 UTC.