Return to day.c CVS log | Up to [local] / src / usr.bin / calendar |
version 1.24, 2013/04/02 04:40:21 | version 1.25, 2013/04/16 18:28:24 | ||
---|---|---|---|
|
|
||
len = strlen(date); | len = strlen(date); | ||
if (len < 2) | if (len < 2) | ||
return((time_t)-1); | return((time_t)-1); | ||
bzero(&tm, sizeof tm); | |||
tm.tm_sec = 0; | tm.tm_sec = 0; | ||
tm.tm_min = 0; | tm.tm_min = 0; | ||
/* Avoid getting caught by a timezone shift; set time to noon */ | /* Avoid getting caught by a timezone shift; set time to noon */ |