From: Tanaka Akira Date: 2003-07-23T09:32:44+09:00 Subject: Re: SMTP Date format? In article <200307221635.02170.ben@thingmagic.com>, Ben Giddings writes: > Is there already code which formats a date into the format required for SMTP? > > http://ftp.rfc-editor.org/in-notes/rfc2822.txt time.rb which is bundled since 1.6.7 has Time#rfc2822. % ruby -rtime -e 'p Time.now.rfc2822' "Wed, 23 Jul 2003 09:29:05 +0900" -- Tanaka Akira