|
|
| version 1.67, 2004/04/15 15:39:52 | version 1.68, 2004/07/28 14:38:20 |
|---|---|
| Line 79 static int to_tm_year(int iyear) { | Line 79 static int to_tm_year(int iyear) { |
| "empty string is not valid datetime"); | "empty string is not valid datetime"); |
| char *cur=cstr; | char *cur=cstr; |
| int date_delim=isdigit(cur[0])&&isdigit(cur[1])&&isdigit(cur[2])&&isdigit(cur[3])&&cur[4]==':'?':' | int date_delim=isdigit((unsigned char)cur[0])&&isdigit((unsigned char)cur[1])&&isdigit((unsigned char)cur[2])&&isdigit((unsigned char)cur[3])&&cur[4]==':'?':' |
| :'-'; | :'-'; |
| const char* year=lsplit(&cur, date_delim); | const char* year=lsplit(&cur, date_delim); |
| const char* month=lsplit(&cur, date_delim); | const char* month=lsplit(&cur, date_delim); |