Template:Format time/doc

Parameters

 * is required, and is the hour in 24 hour format.
 * aliases: and  (the first positional parameter)
 * is recommended; it is the minute after the hour (default 0).
 * aliases: and  (the second positional parameter)
 * is optional; seconds will only be rendered if this is not blank.
 * aliases:, and  (the third positional parameter)
 * may be a numerical value, or "Z" for UTC; see examples.
 * aliases:, and  (the fourth positional parameter)
 * can be blank, 'h', 'H', 'g' or 'G'; see.

Examples:


 * returns ""
 * returns ""
 * returns ""
 * returns ""
 * returns ""

Hour format
The hour format parameter can be variously 'g', 'G', 'h', or 'H', specifying whether to use 12 hour time with AM/PM (g/h) or 24 hour time (G/H), and whether to truncate (g/G) numbers under 10 or not (h/H).

Examples:


 * returns ""
 * returns ""


 * returns ""
 * returns ""


 * returns ""
 * returns ""


 * returns ""
 * returns ""

Template Data
{	"params": { "hour": { "aliases": [ "hh", "1"			],			"label": "Hour", "description": "Hour of the day, in 24 hour format", "example": "13", "type": "number", "autovalue": "", "required": true },		"minute": { "aliases": [ "mm", "2"			],			"label": "Minute", "description": "minutes after the hour", "example": "3", "type": "number", "autovalue": "0", "suggested": true },		"second": { "aliases": [ "ss", "sec", "3"			],			"label": "Second", "description": "Seconds after the minute", "type": "number" },		"hour_format": { "label": "Hour format", "type": "string", "suggested": true, "description": "Formats hours and whether to render AM/PM or a.m./p.m.", "example": "g (7:00 p.m.), G (07:00 PM), h (19:00), or H (19:00)" },		"timezone": { "aliases": [ "tz", "TimeZone", "4"			],			"description": "A numerical offset from UTC, or 'Z'. If non-empty, shows time zone", "example": "Z", "type": "string" }	},	"paramOrder": [ "hour", "minute", "second", "hour_format", "timezone" ],	"description": "Formats a time of day" }