Template:Format time/doc

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
This is the documentation subpage of Template:Format time. It contains usage information that is not part of the underlying template.
{{format time|time}}
{{format time|time|format=|show-00-min=|2-digit-12hr=}}

Parameters

time (unnamed parameter 1)
Required. The time in 24-hour format. Hour values are 0-24 inclusive. Hour values without minutes are accepted (the minutes are assumed to be :00). Leading zeroes for one-digit hours are optional.
Examples: 0, 0:00, 00, 00:00, 24, or 24:00 for 12:00 AM (midnight); 1:15 or 01:15 for 1:15 AM; 15 or 15:00 for 3:00 PM; 19:30 for 7:30 PM.
format
Optional. Accepts values 24hr and 12hr. Defaults to 24hr if unspecified.
24hr format will list the times as 00 to 24, with a zero prefixed for hours 0-9.
12hr format will list the times as 12 AM, 1 AM to 11 AM, 12 PM, 1 PM to 11 PM.
2-digit-12hr
Optional. When set to any value, 12hr times will prefix a 0 onto hours between 1 and 9, e.g. 02 AM or 05 PM.
When not set, 12hr times will not have a prefixed zero, e.g. 2 AM or 5 PM.
This parameter has no effect on the display of 24hr times.
show-00-min
Optional. When set to any value, times that are exactly on the hour (i.e. end in :00) will display with the minutes, e.g. 11:00.
When not set, times that are exactly on the hour will display only the hour part without the minutes, e.g. 11.
This parameter has no effect on the display of times 1-59 minutes past the hour.