[plt-scheme] date structures from email header field?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Jan 14 10:24:20 EST 2003

On Monday, January 13, 2003, at 09:15  AM, Matthew Flatt wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Sorry - I read your request backward!
>
> Matthew
>
> At Mon, 13 Jan 2003 12:50:12 -0500 (EST), dvanhorn at emba.uvm.edu wrote:
>> Quoting Matthew Flatt <mflatt at cs.utah.edu>:
>>
>>> At Mon, 13 Jan 2003 12:25:33 -0500 (EST), dvanhorn at emba.uvm.edu 
>>> wrote:
>>>> Has anyone written a procedure for constructing date structures 
>>>> given a
>>>> string as found in IMAP message headers?  eg.  "Tue, 7 Jan 2003 
>>>> 14:31:46
>>>> -0500 (EST)"
>>>
>>> The latest (lib "date.ss") --- in CVS, post v203 release --- supports
>>> this as the 'rfc2822 display format.
>>>
>>> The current date is also now included in the "standard header" 
>>> created
>>> by (lib "head.ss" "net").
>>>
>>> Matthew
>>
>> Unless I've misunderstood something, I still don't see how a date 
>> structure can
>> be constructed from an rfc2822 date string?
>>
>> -d

(filter (lambda (sec) (eq? (date->string (seconds->date sec)))) 
(build-list (expt 2 32) (lambda (x) x)))


john "not fast enough for ya?" clements



Posted on the users mailing list.