Calendar date to string
str = CL_dat_cal2str(cal [[, nd, form]])
Converts a calendar date into a string.
The calendar date is a column vector: [year;month;day] or [year;month;day;hours,minutes;seconds].
The argument nd is the number of digits for the fractional seconds. It must be between 0 and 6, or equal to -1.
- If nd is positive or 0, the seconds are rounded to the nearest 10^-nd second and only nd digits are written.
- if nd is equal to -1, the calendar date should be an exact day, and only the day appear in the string.
The argument form is the output format. It can be "CL" (CelestLab format) or "ISO" (ISO8601 format). The default format is "CL".
Note:
The input calendar date is supposed to be a valid calendar date.
Calendar date (3xN or 6xN)
(optional) Number of digits for the fractional seconds, or -1. Default is 3 (1x1)
(string, optional) Output format: "CL" or "ISO". Default is "CL" (1x1)
(string) Formatted calendar date (1xN)
CNES - DCT/SB