$LastChangedDate: 27-Juil-2011 $

# CL_dat_cjd2cal

Modified (1950.0) Julian day to calendar date

## Calling Sequence

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

## Description

- Converts a 1950.0 Julian day (julian day from 1950.0) into a calendar date.

  The output arguments are either:

  - year, month, day, hour, minute, second: 3 or 6 output arguments are expected. 3 is only accepted if the julian day is a whole number.

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

- See Dates and Time for more details.

## Parameters

cjd:

  Modified Julian day from 1950.0 (1xN)

year:

  Year (1xN)

month:

  Month (1xN)

day:

  Day (1xN)

hour:

  Hours (1xN)

minute:

  Minutes (1xN)

second:

  Seconds (1xN)

## Authors

- CNES - DCT/SB

## See also

- CL_dat_cal2cjd

- CL_dat_jd2cal

## Examples

    cjd1 = 18262;
    [year,month,day,hour,minute,second] = CL_dat_cjd2cal(cjd1)
    d = CL_dat_cjd2cal(cjd1)
    cjd2  = 21965.50260416667;
    [year,month,day,hour,minute,second] = CL_dat_cjd2cal(cjd2)
    d = CL_dat_cjd2cal(cjd2)
    [year,month,day,hour,minute,second] = CL_dat_cjd2cal([cjd1, cjd2])
    d = CL_dat_cjd2cal([cjd1, cjd2])