<< CL_cw_twoImpulse DEPRECATED CL_dat_cjd2jd >>

CelestLab >> DEPRECATED > CL_dat_cal2jd

CL_dat_cal2jd

Calendar date to Julian day - DEPRECATED

Calling Sequence

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

Description

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)

jd:

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

Authors

Bibliography

See also

Examples

// Example 1
jd = CL_dat_cal2jd(2000,1,1)
jd = CL_dat_cal2jd(2010,2,20,12,3,45)
jd = CL_dat_cal2jd([2000;1;1])
jd = CL_dat_cal2jd([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]
jd = CL_dat_cal2jd(year,month,day,hour,minute,second)
jd = CL_dat_cal2jd([year;month;day;hour;minute;second])

Report an issue
<< CL_cw_twoImpulse DEPRECATED CL_dat_cjd2jd >>