Template:JULIANDAY.HOUR
Appearance
| This 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. |
This template takes a Julian day number or timestamp and returns the associated hour (between 00 and 23) within the Julian or Gregorian calendar.
Examples
{{JULIANDAY.HOUR|{{JULIANDAY|-4799|3|1|0|0|0}}}}returns 23 (proleptic) (in year 4800 BC), first Gregorian date where the result is warrantied to be correct{{JULIANDAY.HOUR|{{JULIANDAY|-4799|3|1}}}}returns 11 (proleptic) (in year 4800 BC), same date at noon{{JULIANDAY.HOUR|{{JULIANDAY|-4799|3|2}}}}returns 11 (proleptic) (in year 4800 BC), tests the 1 day increment{{JULIANDAY.HOUR|{{JULIANDAY|-4713|11|24}}}}returns 12 (proleptic) (in year 4714 BC){{JULIANDAY.HOUR|{{JULIANDAY|2026|6|29|0|0|0}}}}returns 00{{JULIANDAY.HOUR|{{JULIANDAY|2026|6|29|01|21|59}}}}returns 01{{JULIANDAY.HOUR|{{JULIANDAY|2026|6|29|23|59|59}}}}returns 23{{JULIANDAY.HOUR|83602353.50}}returns 00{{JULIANDAY.HOUR|83602353.75}}returns 06{{JULIANDAY.HOUR|83602354.00}}returns 12{{JULIANDAY.HOUR|83602354.25}}returns 18{{JULIANDAY.HOUR|83602354.46}}returns 23