Return to strings.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.4, 2008/12/29 18:08:44 | version 1.5, 2009/01/06 15:49:44 | ||
---|---|---|---|
|
|
||
{ | { | ||
struct tm tm; | struct tm tm; | ||
(void)memset(&tm, 0, sizeof(struct tm)); | |||
if (strptime(p, "%b %d %Y", &tm)) | if (strptime(p, "%b %d %Y", &tm)) | ||
return(mktime(&tm)); | return(mktime(&tm)); | ||
if (strptime(p, "%b %d, %Y", &tm)) | if (strptime(p, "%b %d, %Y", &tm)) |