<< dat_cal2jd Utilities dat_jd2cal >>

scilib_geo >> Utilities > dat_cal2mjd

dat_cal2mjd

Transforms a calendar date and time in the Modified JD (MJD).

Calling Sequence

mjd = dat_cal2mjd(year, month, day [hour, minute, second])
mjd = dat_cal2mjd(cal)

Parameters

cal

date vector [1x6]

year

year, integer [YYYY]

month

month, integer

day

day, integer

hour, minute, second

daytime UT1, [hours, minutes, seconds] optional

mjd

Modified Julian Date (MJD)

Description

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

Examples

mjd = dat_cal2mjd(2018, 11, 30, 18)

See Also

Authors


Report an issue
<< dat_cal2jd Utilities dat_jd2cal >>