this Function converts a calender date to Julian Date (JD).
jd = dat_cal2jd(cal) jd = dat_cal2jd(year, month, day [, hour, minute, second])
date as vector (nx3 oder nx6) or matrix of nx3 or nx6 vectors.
year, integer (1xn)
month, integer (1xn)
day, integer (1xn)
time in hours (minutes can be contained as decimal), minues
and seconds (1xn). [year; month; day; hour; minutes;
second]
Julian Date (JD) (1xn)
Converts a calendar date in a Julian Date (JD).
Attention: dates before 4. Okt. 1582 24h are counted to the julian calendar and after to the gregorian calendar, which means they are after the 15. Okt 1582.
(matrix aware)
Meeus, J.: Astronomical Algorithms, Willmann-Bell, Richmond 2000 (2nd ed., 2nd printing).