Mercurial > noffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 258:ebd9c98bbc7f | 259:b660fadc1814 |
|---|---|
| 1 /* | 1 /* |
| 2 util.h | 2 util.h |
| 3 | 3 |
| 4 Miscellaneous helper functions. | 4 Miscellaneous helper functions. |
| 5 | 5 |
| 6 $Id: util.h 375 2002-03-15 10:50:33Z bears $ | 6 $Id: util.h 391 2002-06-26 13:30:26Z bears $ |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef UTL_H | 9 #ifndef UTL_H |
| 10 #define UTL_H | 10 #define UTL_H |
| 11 | 11 |
| 76 | 76 |
| 77 /* Get time stamp from <file> */ | 77 /* Get time stamp from <file> */ |
| 78 Bool | 78 Bool |
| 79 Utl_getStamp( time_t *result, Str file ); | 79 Utl_getStamp( time_t *result, Str file ); |
| 80 | 80 |
| 81 /* Like mktime, but GMT */ | |
| 82 time_t | |
| 83 Utl_mktimeGMT( struct tm *t ); | |
| 84 | |
| 81 /* Put SonOfRFC1036 compliant date string into res. */ | 85 /* Put SonOfRFC1036 compliant date string into res. */ |
| 82 void | 86 void |
| 83 Utl_newsDate( time_t t, Str res ); | 87 Utl_newsDate( time_t t, Str res ); |
| 84 | 88 |
| 85 /* Attempt to parse a SonOfRFC1036 compliant date string. Return -1 on fail. */ | 89 /* Attempt to parse a SonOfRFC1036 compliant date string. Return -1 on fail. */ |
