<< CL_dat_now Coordinates and frames CL_dat_scaleConvert >>

celestlab >> Coordinates and frames > CL_dat_offset

CL_dat_offset

Offset between 2 dates

Calling Sequence

[seconds] = CL_dat_offset(cjd, cjd_ref)

Description

Parameters

cjd:

Modified (1950.0) Julian date in any time scale. (1xN or 2xN or 1x1 or 2x1)

cjd_ref:

Modified (1950.0) Julian date in the same time scale as cjd. (1xN or 2xN or 1x1 or 2x1)

seconds:

Number of seconds between cjd_ref and cjd (same time scale as cjd and cjd_ref). (1xN)

Authors

See also

Examples

// Example 1:
cjd = CL_dat_cal2cjd(2000,1,1,12,3,1);
cjd_ref = CL_dat_cal2cjd(2000,1,1,0,0,0);
seconds = CL_dat_offset(cjd, cjd_ref)

// Example 2:
cjd = CL_dat_cal2cjd2(2000,1,1,12,3,1);
cjd_ref = CL_dat_cal2cjd2(2000,1,1,0,0,0);
seconds = CL_dat_offset(cjd, cjd_ref)

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