Difference between revisions of "Template:Time"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>Heddy
(Used #time parser function)
ink>Heddy
(specified UTC in documentation)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
<pre>{{time|hh:mm}}</pre>
+
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''' ({{#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.
 
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 04:52 UTC. You would type {{time|04:52 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.