Transforms a calendar date and time in the Modified JD (MJD).
mjd = dat_cal2mjd(year, month, day [hour, minute, second]) mjd = dat_cal2mjd(cal)
date vector [1x6]
year, integer [YYYY]
month, integer
day, integer
daytime UT1, [hours, minutes, seconds]
optional
Modified Julian Date (MJD)
Calculates the Modified Julian Date (MJD) from a given calendar date and time.
Modified Julian Date: The number of days (with decimal fraction of the day) that have elapsed since midnight (UT1) at the beginning of Wednesday November 17, 1858.
MJD = JD - 2,400,000.5
(matrix aware)
No warranty, there are no input checks