Template:YMD2MJD

From OrthodoxWiki
Jump to: navigation, search

60649


Conversion from ISO 8601 year-month-day to Modified Julian Date (day number). See Template talk:YMD2MJD for the detailed documentation.

Usage:
{{YMD2MJD|year|month|day}}
{{YMD2MJD}}
Examples:
{{ YMD2MJD|-4712|1|2}} = -2400000

, MJD = JD + 2400000.5

{{ YMD2MJD|-100|02|29}} = -715409

, proleptic Julian leap year

{{ YMD2MJD|-100|03|01}} = -715408

, March 1, 101 BC

{{ YMD2MJD|0000|12|31}} = -678578

, Astronomical year numbering

{{ YMD2MJD|0001|01|01}} = -678577

, begin Common Era

{{ YMD2MJD|0200|02|29}} = -605834

, this and earlier dates are Julian

{{ YMD2MJD|0200|03|01}} = -605833

, first Julian = Gregorian date

{{ YMD2MJD|0300|02|28}} = -569310

, last Julian = Gregorian date

{{ YMD2MJD|0300|03|01}} = -569309

, this and later dates are Gregorian

{{ YMD2MJD|1858|11|17}} = 0

, begin of MJD epoch

{{ YMD2MJD|1900|02|28}} = 15078

, last day of February 1900

{{ YMD2MJD|1900|02|29}} = 15079

, bogey but okay

{{ YMD2MJD|1900|03|01}} = 15079

, no leap year

{{ YMD2MJD|1900|02|30}} = 15080

, bogey but okay

{{ YMD2MJD|1900|03|02}} = 15080
{{ YMD2MJD|1995|09|27}} = 49987

, USNO test date (49987)

{{ YMD2MJD|2000|02|29}} = 51603

, last day of February 2000

{{ YMD2MJD|2000|02|30}} = 51604

, bogey but okay

{{ YMD2MJD|2000|03|01}} = 51604

, leap year

{{ YMD2MJD|2000|02|31}} = 51605

, bogey but okay

{{ YMD2MJD|2000|03|02}} = 51605
{{ YMD2MJD|2024|12|05}} = 60649
= {{ YMD2MJD}} = 60649