Difference between revisions of "Template:YMD2MJD"
(New page: {{{{{subst|}}}#ifeq: {{{1|+}}}|{{{1|-}}}| {{{{{subst|}}}#expr:((- 678975.8+30.6*({{{2|1}}}+12*({{{2|1}}}<3)))round 0)+{{{3|1}}} + ( 365.25* ({{{1}}}-({{{2|1}}}<3)) -.4 round 0) +({{{1}}}>2...) |
(cat) |
||
Line 35: | Line 35: | ||
</noinclude> | </noinclude> | ||
+ | <noinclude>[[Category: Calendar templates|YMD2MJD]]</noinclude> |
Latest revision as of 06:46, April 9, 2008
60453
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
- {{
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|05|23
}} = 60453
= {{ YMD2MJD
}} = 60453