39 int year, month, day, hour,
min, sec;
42 if (datetime == NULL || jd == NULL)
45 num_values = sscanf(datetime,
"%4d-%2d-%2dT%2d:%2d:%2d",&year,&month,
46 &day,&hour,&min,&sec);
MTKt_status MtkCalToJulian(int y, int m, int d, int h, int mn, int s, double *julian)
Convert calendar date to Julian date.
MTKt_status MtkDateTimeToJulian(const char *datetime, double *jd)
Convert date and time (ISO 8601) to Julian date.
#define MTK_ERR_CODE_JUMP(code)
#define MTK_ERR_COND_JUMP(code)