69 static const int min[9] = { 0, 0, 1, 1, 0, 0, 0, 0, 0 };
70 static const int max[9] = { 99, 99, 12, 31, 23, 59, 59, 12, 59 };
86 for (
i = 0;
i < 7;
i++) {
87 if ((
i == 6) && ((
a[
o] ==
'Z') || (
a[
o] ==
'+') || (
a[
o] ==
'-'))) {
93 if ((
a[
o] <
'0') || (
a[
o] >
'9'))
99 if ((
a[
o] <
'0') || (
a[
o] >
'9'))
101 n = (
n * 10) +
a[
o] -
'0';
110 tm->tm_year =
n * 100 - 1900;
141 while ((
a[
o] >=
'0') && (
a[
o] <=
'9') && (
o <=
l))
150 else if ((
a[
o] ==
'+') || (
a[
o] ==
'-')) {
151 int offsign =
a[
o] ==
'-' ? 1 : -1,
offset = 0;
155 for (
i = 7;
i < 9;
i++) {
156 if ((
a[
o] <
'0') || (
a[
o] >
'9'))
160 if ((
a[
o] <
'0') || (
a[
o] >
'9'))
162 n = (
n * 10) +
a[
o] -
'0';
194 t.length = strlen(
str);
195 t.data = (
unsigned char *)
str;
199 (
unsigned char *)
str, t.length))
215 time_t t,
int offset_day,
235 if (offset_day || offset_sec) {
240 if (ts->tm_year < 0 - 1900 || ts->tm_year > 9999 - 1900) {
245 p = (
char *)tmps->
data;
253 tmps->
data = (
unsigned char *)
p;
257 ts->tm_mon + 1, ts->tm_mday, ts->tm_hour, ts->tm_min,