Knowledge (XXG)

Template:HOUR

Source 📝

21: 52: 122:
For compatibility with some time indications that use 24:00 or 23:60 on leap seconds, or for the end of day, this template return 24 only for those two specific values. This allows correct computing of julian day
119:
format (between 00:00 and 23:60 or 24:00), or can be any valid numeric expression of a real number of hours (this computed numeric value is processed modulo 24).
169: 36: 151: 202: 165: 32: 218: 40: 68: 93:
This template simply returns the integer hour on two digits (between 00 and 23) for the time in parameter.
72: 64: 76: 198: 159: 155: 28: 143: 133: 212: 138: 59: 15: 63:
and changes may be widely noticed. Test changes in the template's
46: 190: 182: 178: 175:Editors can experiment in this template's sandbox 8: 75:. Consider discussing changes on the 7: 14: 50: 19: 60:approximately 2,300 pages 1: 235: 149: 203:Subpages of this template 79:before implementing them. 71:subpages, or in your own 58:This template is used on 219:Date-computing templates 197:Add categories to the 24:Template documentation 160:Template:HOUR/doc 83: 82: 226: 194: 186: 173: 118: 54: 53: 47: 44: 25: 23: 22: 234: 233: 229: 228: 227: 225: 224: 223: 209: 208: 207: 206: 196: 188: 176: 174: 163: 148: 144:Template:MINUTE 134:Template:HOUR12 130: 116: 115:must be in the 99: 91: 85: 51: 45: 26: 20: 18: 12: 11: 5: 232: 230: 222: 221: 211: 210: 187:and testcases 147: 146: 141: 136: 129: 126: 125: 124: 120: 108: 107: 98: 95: 90: 87: 81: 80: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 231: 220: 217: 216: 214: 204: 200: 192: 184: 180: 171: 167: 161: 157: 153: 152:documentation 145: 142: 140: 139:Template:AMPM 137: 135: 132: 131: 127: 121: 114: 110: 109: 105: 101: 100: 96: 94: 88: 86: 78: 74: 70: 66: 62: 61: 56: 49: 48: 42: 38: 34: 30: 112: 103: 92: 84: 73:user subpage 57: 156:transcluded 123:timestamps. 39:] [ 35:] [ 31:] [ 150:The above 69:/testcases 201:subpage. 77:talk page 213:Category 128:See also 65:/sandbox 181:| 170:history 168:| 102:{{HOUR| 89:Purpose 37:history 195:pages. 191:create 183:mirror 179:create 97:Syntax 158:from 117:hh:mm 43:] 41:purge 27:[ 199:/doc 166:edit 113:time 111:The 104:time 33:edit 29:view 154:is 67:or 215:: 162:. 106:}} 205:. 193:) 189:( 185:) 177:( 172:) 164:(

Index

view
edit
history
purge
approximately 2,300 pages
/sandbox
/testcases
user subpage
talk page
Template:HOUR12
Template:AMPM
Template:MINUTE
documentation
transcluded
Template:HOUR/doc
edit
history
create
mirror
create
/doc
Subpages of this template
Category
Date-computing templates

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.