$LastChangedDate: 27-Juil-2011 $

# CL_dat_jd2cal

Julian day to calendar date

## Calling Sequence

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

## Description

- Converts a Julian day into a calendar date.

  The output arguments are either:

  - year, month, day, hour, minute, second: 6 output arguments are expected.

  - cal: colum vector containing year, month, day, hour, minute, second.

- Notes:

  - Years are counted astronomically. The year 1-BC is 0, 2-BC is -1, ...

  - The dates are relative to the Julian calendar before 4th october 1582 24h (Julian calendar), and to the Gregorian calendar after 5th October 1582 0h (Julian calendar), that is, after 15th october 1582 0h (Gregorian calendar).

  - Julian day 0 is 1st January -4712 12h (Julian calendar).

- See Dates and Time for more details.

## Parameters

jd:

  Julian day (number of days since 1st January -4712, 12h) (1xN)

year:

  Year (1xN)

month:

  Month [1..12] (1xN)

day:

  Day [1..31] (1xN)

hour:

  Hours (1xN)

minute:

  Minutes (1xN)

second:

  Seconds (1xN)

## Authors

- CNES - DCT/SB

## Bibliography

- 1) Jean Meeus - Astronomical Algorithms - 1991

- 2) IMCCE: http://www.imcce.fr

## See also

- CL_dat_cal2jd

- CL_dat_cal2cjd

## Examples

    jd1 = 2451544.5;
    [year,month,day,hour,minute,second] = CL_dat_jd2cal(jd1)
    d = CL_dat_jd2cal(jd1)
    jd2  = 2455248.002604167;
    [year,month,day,hour,minute,second] = CL_dat_jd2cal(jd2)
    d = CL_dat_jd2cal(jd2)
    [year,month,day,hour,minute,second] = CL_dat_jd2cal([jd1,jd2])
    d = CL_dat_jd2cal([jd1,jd2])