ଛାଞ୍ଚ:Hour12nopad
Appearance
Works similarly to the HOUR12 template, but the zero padding is removed - returns the hour in 12-hours format for the hour in 24-hour format (between 0 and 24).
- Syntax:
- {{Hour12nopad|hour24}}
- Synonym:
- {{hour12|hour24}}
- Examples for AM hours:
- "{{Hour12nopad|24}}" returns "12"
- "{{Hour12nopad|0}}" returns "12"
- "{{Hour12nopad|00}}" returns "12"
- "{{Hour12nopad|1}}" returns "1"
- "{{Hour12nopad|01}}" returns "1"
- "{{Hour12nopad|2}}" returns "2"
- "{{Hour12nopad|02}}" returns "2"
- "{{Hour12nopad|9}}" returns "9"
- "{{Hour12nopad|09}}" returns "9"
- "{{Hour12nopad|10}}" returns "10"
- "{{Hour12nopad|11}}" returns "11"
- Examples for PM hours:
- "{{Hour12nopad|12}}" returns "12"
- "{{Hour12nopad|13}}" returns "1"
- "{{Hour12nopad|14}}" returns "2"
- "{{Hour12nopad|15}}" returns "3"
- "{{Hour12nopad|21}}" returns "9"
- "{{Hour12nopad|22}}" returns "10"
- "{{Hour12nopad|23}}" returns "11"
- See also: