$LastChangedDate: 27-Juil-2011 $

# CL_dat_cal2cjd

Calendar date to modified (1950.0) Julian day

## Calling Sequence

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

## Description

- Converts a calendar date (year,month,day,hour,minute,second) into a modified (1950.0) Julian day (julian day from 1950.0).

- See Dates and Time for more details.

## Parameters

year:

  (integer) Year. (1xN)

month:

  (integer in [1,12]) Month. (1xN).

day:

  (integer in [1,31]) Day. (1xN)

hour:

  (optional) Hours. Default is 0. (1xN or 1x1)

minute:

  (optional) Minutes. Default is 0. (1xN or 1x1)

second:

  (optional) Seconds. Default is 0. (1xN or 1x1)

cjd:

  Modified (1950.0) Julian day (1xN)

## Authors

- CNES - DCT/SB

## See also

- CL_dat_cjd2cal

- CL_dat_cal2jd

## Examples

    // Example 1
    cjd = CL_dat_cal2cjd(2000,1,1)
    cjd = CL_dat_cal2cjd(2010,2,20,12,3,45)
    cjd = CL_dat_cal2cjd([2000;1;1])
    cjd = CL_dat_cal2cjd([2010;2;20;12;3;45])

    // Example 2
    year=[2000,2010]
    month=[1,2]
    day=[1,20]
    hour=[0,12]
    minute=[0,3]
    second=[0,45]
    cjd = CL_dat_cal2cjd(year,month,day,hour,minute,second)
    cjd = CL_dat_cal2cjd([year;month;day;hour;minute;second])