apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Henriksen <gordonhenrik...@me.com>
Subject Re: [Patch] RFC 822 date parsing
Date Wed, 27 Aug 2008 02:37:29 GMT
On 2008-08-26, at 22:23, Geoff Greer wrote:

> APR doesn't have any function for parsing an RFC 822 date.

Seems it already has two.

$ grep -ri 'RFC.*822' /usr/include/apr-1
/usr/include/apr-1/apr_date.h: *     Sun, 06 Nov 1994 08:49:37 GMT  ;  
RFC 822, updated by RFC 1123
/usr/include/apr-1/apr_date.h: * Parses a string resembling an RFC 822  
date.  This is meant to be
/usr/include/apr-1/apr_date.h: *     Sun, 06 Nov 1994 08:49:37 GMT  ;  
RFC 822, updated by RFC 1123
/usr/include/apr-1/apr_date.h: *     Sun, 6 Nov 1994 08:49:37 GMT   ;  
RFC 822, updated by RFC 1123
/usr/include/apr-1/apr_date.h: *     Sun, 06 Nov 94 08:49:37 GMT    ;  
RFC 822
/usr/include/apr-1/apr_date.h: *     Sun, 6 Nov 94 08:49:37 GMT     ;  
RFC 822
/usr/include/apr-1/apr_time.h:/** length of a RFC822 Date */
/usr/include/apr-1/apr_time.h:#define APR_RFC822_DATE_LEN (30)
/usr/include/apr-1/apr_time.h: * apr_rfc822_date formats dates in the  
RFC822
/usr/include/apr-1/apr_time.h:APR_DECLARE(apr_status_t)  
apr_rfc822_date(char *date_str, apr_time_t t);

— Gordon


Mime
View raw message