Difference between revisions of "Template:Time"
ink>Heddy (Used #time parser function) |
ink>Heddy (specified UTC in documentation) |
||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| − | + | Enter time in the format: '''hh:mm UTC'''. | |
| − | + | : For example, the current time is '''{{#time: H }}:{{#time: i }} UTC'''. You would type <code><nowiki>{{time|</nowiki>{{#time: H }}:{{#time: i }} <nowiki>UTC}}</nowiki></code>. | |
| − | Enter time in the format: '''hh:mm''' | ||
If a time zone is provided, the time will be converted to the UTC time standard. If a date is included, only the time will be displayed. | If a time zone is provided, the time will be converted to the UTC time standard. If a date is included, only the time will be displayed. | ||
Revision as of 23:55, 18 August 2018
This template is used to keep time formatted consistently across the wiki.
Usage
Enter time in the format: hh:mm UTC.
- For example, the current time is 06:34 UTC. You would type
{{time|06:34 UTC}}.
If a time zone is provided, the time will be converted to the UTC time standard. If a date is included, only the time will be displayed.
- For example,
{{time|2018-01-13 15:00 JST}}will be converted to 06:00 UTC.