Difference between revisions of "Template:Time"
ink>Heddy (revised documentation) |
ink>Heddy (removed things that would never be used in this template) |
||
| Line 12: | Line 12: | ||
The template will convert non-UTC input to UTC. | The template will convert non-UTC input to UTC. | ||
: <code><nowiki>{{time|2018-01-13 15:00 JST}}</nowiki></code> will be converted to {{time|2018-01-13 15:00 JST}}. | : <code><nowiki>{{time|2018-01-13 15:00 JST}}</nowiki></code> will be converted to {{time|2018-01-13 15:00 JST}}. | ||
| − | |||
| − | |||
| − | |||
If the date is not needed, time can be entered alone. The resulting link will assume today's date. | If the date is not needed, time can be entered alone. The resulting link will assume today's date. | ||
: '''{{#time: H:i e }}''' is entered as <code><nowiki>{{time|</nowiki>{{#time: H:i e }}<nowiki>}}</nowiki></code>. | : '''{{#time: H:i e }}''' is entered as <code><nowiki>{{time|</nowiki>{{#time: H:i e }}<nowiki>}}</nowiki></code>. | ||
| − | |||
| − | |||
| − | |||
[[Category:Formatting Templates]] | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 00:06, 28 August 2018
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 09:56 UTC is entered as
{{time|2025-12-22 09:56 UTC}}.
The template will convert non-UTC input to UTC.
{{time|2018-01-13 15:00 JST}}will be converted to 06:00 UTC.
If the date is not needed, time can be entered alone. The resulting link will assume today's date.
- 09:56 UTC is entered as
{{time|09:56 UTC}}.