<< dat_cal2mjd Utilities dat_leapseconds >>

scilib_geo >> Utilities > dat_jd2cal

dat_jd2cal

Transforms a Julian Date (JD) in the calendar date and time.

Calling Sequence

[year, month, day, hour] = dat_jd2cal(jd)
[year, month, day, hour, minute, second] = dat_jd2cal(jd)
cal = dat_jd2cal(jd)

Parameters

jd

Julian Date (JD)

year

year, integer (1xn)

month

month, integer (1xn)

day

day, integer (1xn)

hour, minute, second

daytime, houres, minutes, seconds (1xn)

cal

date as vector ([nx3] or [nx6]) or matrix of vectors. [year; month; day; [hour; minute; second]]

Description

Converts a Julian Date (JD) in a calendar date.

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.

Examples

[y,m,d,h] = dat_jd2cal(2453750.1875)

See Also

Bibliography

Meeus, J.: Astronomical Algorithms, Willmann-Bell, Richmond 2000 (2nd ed., 2nd printing).

Authors


Report an issue
<< dat_cal2mjd Utilities dat_leapseconds >>