comparison src/util.h @ 91:93cc929329eb noffle

[svn] Date output change and now date parsing
author bears
date Fri, 19 May 2000 16:12:45 +0100
parents bf8c97460fd7
children 94f2e5607772
comparison
equal deleted inserted replaced
90:9cf0d605465a 91:93cc929329eb
1 /* 1 /*
2 util.h 2 util.h
3 3
4 Miscellaneous helper functions. 4 Miscellaneous helper functions.
5 5
6 $Id: util.h 99 2000-05-18 12:11:05Z bears $ 6 $Id: util.h 110 2000-05-19 15:12:45Z bears $
7 */ 7 */
8 8
9 #ifndef UTL_H 9 #ifndef UTL_H
10 #define UTL_H 10 #define UTL_H
11 11
74 74
75 /* Get time stamp from <file> */ 75 /* Get time stamp from <file> */
76 Bool 76 Bool
77 Utl_getStamp( time_t *result, Str file ); 77 Utl_getStamp( time_t *result, Str file );
78 78
79 /* Put RFC822-compliant date string into res. */ 79 /* Put SonOfRFC1036 compliant date string into res. */
80 void 80 void
81 Utl_rfc822Date( time_t t, Str res ); 81 Utl_newsDate( time_t t, Str res );
82
83 /* Attempt to parse a SonOfRFC1036 compliant date string. Return -1 on fail. */
84 time_t
85 Utl_parseNewsDate( const char *s );
82 86
83 void 87 void
84 Utl_cpyStr( Str dst, const char *src ); 88 Utl_cpyStr( Str dst, const char *src );
85 89
86 void 90 void