10 static int have(
int x,
const DateTime * dt)
113 return (minutes >= -720 && minutes <= 780);
int datetime_error(int code, char *msg)
record 'code' and 'msg' as error code/msg (in static variables) code==0 will clear the error (ie set ...
int datetime_is_between(int x, int a, int b)
int datetime_is_valid_timezone(int minutes)
Returns: 1 OK: -720 <= minutes <= 780 (720 = 12 hours; 780 = 13 hours) 0 NOT OK.
int datetime_set_timezone(DateTime *dt, int minutes)
returns 0 on success
int datetime_get_timezone(const DateTime *dt, int *minutes)
returns 0 on success
int datetime_check_timezone(const DateTime *dt, int minutes)
returns 0 on success
int datetime_is_absolute(const DateTime *dt)
Returns: 1 if dt.mode is absolute 0 if not (even if dt.mode is not defined)
int datetime_unset_timezone(DateTime *dt)
unsets timezone in 'dt' returns 0