Open main menu

mtgpq wiki β

Template:Hours formatted

Revision as of 06:27, 1 March 2019 by Volrak (talk | contribs) (Created page with "<noinclude> ==Usage== Given an integer number of hours, formats the number as a time in either a 12h or 12h clock. The first parameter is the number of hours, which may be m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Given an integer number of hours, formats the number as a time in either a 12h or 12h clock.

The first parameter is the number of hours, which may be more than 24.

The second parameter (optional) is either 12 for 12h time, or 24 for 24h time. Default: 12

Example

The following shorthand:

{{Hours formatted|29}}

{{Hours formatted|29|24}}

Produces:

5:00 AM

05:00