Mercurial > noffle
diff src/util.h @ 259:b660fadc1814 noffle
[svn] * src/server.c,src/util.c,src/util.h: Recognise GMT/UTC on NNTP NEWGROUPS.
Do small reorg of some of the timezone sensitive code, and introduce
use of timegm(). An implementation is provided for systems without
timegm().
author | bears |
---|---|
date | Wed, 26 Jun 2002 14:30:26 +0100 |
parents | 4e69e9b722ae |
children | 3477050e8d10 |
line wrap: on
line diff
--- a/src/util.h Wed Jun 26 14:29:02 2002 +0100 +++ b/src/util.h Wed Jun 26 14:30:26 2002 +0100 @@ -3,7 +3,7 @@ Miscellaneous helper functions. - $Id: util.h 375 2002-03-15 10:50:33Z bears $ + $Id: util.h 391 2002-06-26 13:30:26Z bears $ */ #ifndef UTL_H @@ -78,6 +78,10 @@ Bool Utl_getStamp( time_t *result, Str file ); +/* Like mktime, but GMT */ +time_t +Utl_mktimeGMT( struct tm *t ); + /* Put SonOfRFC1036 compliant date string into res. */ void Utl_newsDate( time_t t, Str res );