• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:HOUR

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 2,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.


Purpose

This template simply returns the integer hour on two digits (between 00 and 23) for the time in parameter.

Syntax

{{HOUR|time}}
  • The time must be in the hh:mm 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).
  • 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 timestamps.

See also

  • Template:HOUR12
  • Template:AMPM
  • Template:MINUTE

ja:Template:HOUR

The above documentation is transcluded from Template:HOUR/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:HOUR&oldid=1790389"
Last edited on 31 July 2012, at 18:00

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 31 July 2012, at 18:00.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop