Program: MKJD2YMD
mkjd2ymd.............compute year, month, day from Julian Day JD
call: [y,m,d]=mkjd2ymd(jd);
jd: Julian Day (number of days since 01.01.-4712, 12:00)
with decimal fraction
result: y: year
m: month
d: day with decimal fraction, where .0 is 00:00
This is a date of the greogorian calendar.
The result is valid por positive and negative years, but not for
negative JD.
Note that the beginning of a Julian Day is 12:00 UT (because astronomers
wanted to avoid a date change during night - their observation time)
Also note that in astronomical considerations, a year 0 exists which
is identical to the year 1 before christ in the gregorianic calendar.
Algorithm from:
Jean Meeus, "Astronomische Algorithmen"
Johann Ambrosius Barth, Leipzig, Berlin, Heidelberg
2. durchges. Auflage 1994
DO NOT CHANGE THE ALGORITHM.
DO NOT CHANGE THE MAGIC NUMBERS IN THE ALGORITHM.
Martin Knapmeyer 23.01.1999
Read M-File Source Code
eof.