<< CL_dat_cjd2cal Coordinates and frames CL_dat_now >>

CelestLab >> Coordinates and frames > CL_dat_convert

CL_dat_convert

Date type conversion

Calling Sequence

date_out = CL_dat_convert(type_in,type_out,date_in)

Description

Parameters

type_in:

(string) Type of input date: "jd", "cjd", "mjd" or "cal" (1x1)

type_out:

(string) Type of output date: "jd", "cjd", "mjd" or "cal" (1x1)

date_in:

Input date. (1xN or 3xN or 6xN). (3xN or 6xN only if type_in is "cal")

date_out:

Output date (1xN or 6xN). (6xN only if type_out is "cal")

Authors

Examples

cjd = 21956.3;

// Convert from cjd to jd
jd = CL_dat_convert("cjd","jd",cjd);

// Convert from jd to calendar
cal = CL_dat_convert("jd","cal",jd);

Report an issue
<< CL_dat_cjd2cal Coordinates and frames CL_dat_now >>