Difference between revisions of "Template:HOUR"

From blackwiki
Jump to navigation Jump to search
imported>TAKASUGI Shinji
(allows 23:60 and 24:00 like Template:MINUTE)
imported>Cydebot
m (Robot - Removing category Templates using ParserFunctions per CFD at Wikipedia:Categories for discussion/Log/2008 August 21.)
Line 10: Line 10:
 
{{DEFAULTSORT:HOUR}}
 
{{DEFAULTSORT:HOUR}}
 
[[Category:Date-computing templates]]
 
[[Category:Date-computing templates]]
−
[[Category:Templates using ParserFunctions]]
+
 
 
[[ja:Template:HOUR]]
 
[[ja:Template:HOUR]]

Revision as of 17:29, 26 August 2008

Template documentation[view] [edit] [history] [purge]

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

ja:Template:HOUR

ja:Template:HOUR