Return to util.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.87, 2006/06/14 15:14:47 | version 1.88, 2006/06/14 20:28:53 | ||
---|---|---|---|
|
|
||
if (togmt == 1) { | if (togmt == 1) { | ||
t = gmtime(&oldtime); | t = gmtime(&oldtime); | ||
if (t == NULL) | if (t == NULL) | ||
return (0); | fatal("gmtime failed"); | ||
return (mktime(t)); | return (mktime(t)); | ||
} | } | ||
|
|
||
t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour, | t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour, | ||
t->tm_min, t->tm_sec); | t->tm_min, t->tm_sec); | ||
if (l == -1 || l >= (int)sizeof(tbuf)) | if (l == -1 || l >= (int)sizeof(tbuf)) | ||
return (0); | fatal("cvs_hack_time: overflow"); | ||
return (cvs_date_parse(tbuf)); | return (cvs_date_parse(tbuf)); | ||
} | } |