Gordon Henriksen
Tue, 26 Aug 2008 19:47:59 -0700
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