10 static int err_code = 0;
11 static char err_msg[1024];
int datetime_error_code(void)
returns an error code
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 ...
void datetime_clear_error(void)
clears error code and message
char * datetime_error_msg(void)
returns an error message