Template:JULIANDAY.SECOND
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 second (between 00 and 59) within the Julian or Gregorian calendar.
Examples
{{JULIANDAY.SECOND|{{JULIANDAY|-4799|3|1|0|0|0}}}}returns 59 (proleptic) (in year 4800 BC), first Gregorian date where the result is warrantied to be correct{{JULIANDAY.SECOND|{{JULIANDAY|-4799|3|1}}}}returns 59 (proleptic) (in year 4800 BC), same date at noon{{JULIANDAY.SECOND|{{JULIANDAY|-4799|3|2}}}}returns 59 (proleptic) (in year 4800 BC), tests the 1 day increment{{JULIANDAY.SECOND|{{JULIANDAY|-4713|11|24}}}}returns 00 (proleptic) (in year 4714 BC){{JULIANDAY.SECOND|{{JULIANDAY|2026|6|29|0|0|0}}}}returns 00{{JULIANDAY.SECOND|{{JULIANDAY|2026|6|29|01|15|06}}}}returns 06{{JULIANDAY.SECOND|{{JULIANDAY|2026|6|29|23|59|59}}}}returns 58{{JULIANDAY.SECOND|83602353.50}}returns 00{{JULIANDAY.SECOND|83602353.75}}returns 00{{JULIANDAY.SECOND|83602354.00}}returns 00{{JULIANDAY.SECOND|83602354.000012}}returns 01{{JULIANDAY.SECOND|83602354.000024}}returns 02{{JULIANDAY.SECOND|83602354.000683}}returns 59{{JULIANDAY.SECOND|83602354.000695}}returns 00{{JULIANDAY.SECOND|83602354.25}}returns 00