diff 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
line wrap: on
line diff
--- a/src/util.h	Fri May 19 08:59:51 2000 +0100
+++ b/src/util.h	Fri May 19 16:12:45 2000 +0100
@@ -3,7 +3,7 @@
 
   Miscellaneous helper functions.
 
-  $Id: util.h 99 2000-05-18 12:11:05Z bears $
+  $Id: util.h 110 2000-05-19 15:12:45Z bears $
 */
 
 #ifndef UTL_H
@@ -76,9 +76,13 @@
 Bool
 Utl_getStamp( time_t *result, Str file );
 
-/* Put RFC822-compliant date string into res. */
+/* Put SonOfRFC1036 compliant date string into res. */
 void
-Utl_rfc822Date( time_t t, Str res );
+Utl_newsDate( time_t t, Str res );
+
+/* Attempt to parse a SonOfRFC1036 compliant date string. Return -1 on fail. */
+time_t
+Utl_parseNewsDate( const char *s );
 
 void
 Utl_cpyStr( Str dst, const char *src );