Name

CL_dat_jd2cal — Julian Date to calendar date

Calling Sequence

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

Description

  • This function converts a Julian Date (number of fractionnal days since noon UT on January 1st 4713 BC) into a calendar date (year,month,day,hour,minute,second).

    The fractional part of jd (jd-int(jd)) gives the time of the day since noon UT as a decimal fraction of one day with 0.5 representing midnight UT.

  • Last update : 27/6/2008

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)

Authors

CNES - DCT/SB

Bibliography

1 Fundamentals of Astrodynamics and Applications, David A. Vallado, Chapter 3.6.6

See also

CL_dat_cal2jd, CL_dat_cal2cjd

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);