Difference between revisions of "Template:Time"
ink>Heddy m (Heddy moved page Template:UTC to Template:Time without leaving a redirect) |
ink>Heddy (Used #time parser function) |
||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly>[https://www.timeanddate.com/worldclock/fixedtime.html?iso={{#time: Ymd"T"His | {{{1}}} }} {{#time: H:i e | {{{1}}} }}]</includeonly><noinclude> |
| + | This template is used to keep time formatted consistently across the wiki. | ||
== Usage == | == Usage == | ||
| − | {{ | + | <pre>{{time|hh:mm}}</pre> |
| − | + | Enter time in the format: '''hh:mm''' ({{#time: H }}:{{#time: i }}). | |
| − | + | 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. | |
| − | [[Category:Templates]] | + | : For example, <code><nowiki>{{time|2018-01-13 15:00 JST}}</nowiki></code> will be converted to {{time|2018-01-13 15:00 JST}}. |
| + | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:44, 18 August 2018
This template is used to keep time formatted consistently across the wiki.
Usage
{{time|hh:mm}}
Enter time in the format: hh:mm (04:52).
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.