Name
CL_dat_jd2cal — Julian Date to calendar date
Calling Sequence
[year,month,day,hour,minute,second] = CL_dat_jd2cal(jd)
Parameters
- jd:
Julian Date (number of fractionnal days since noon UT on January 1st 4713 BC) (1xN)
- year:
year [1900..2100] (1xN)
- month:
month [1..12] (1xN)
- day:
day [1..28,29,30 or 31] (1xN)
- hour:
hour [0..23] (1xN)
- minute:
minute [0..59] (1xN)
- second:
second [0.0..59.999] (1xN)
Bibliography
1 Fundamentals of Astrodynamics and Applications, David A. Vallado, Chapter 3.6.6
Examples
// Example 1
[year,month,day,hour,minute,second] = CL_dat_jd2cal(2449877.3458762)
// Example 2
jd=[2449877.3458762,2451603.5];
[year,month,day,hour,minute,second] = CL_dat_jd2cal(jd);
jd2 = CL_dat_cal2jd(year,month,day,hour,minute,second);