From: Akinori MUSHA Date: 2007-03-05T19:27:24+09:00 Subject: [ruby-dev:30488] Re: Time#to_s format --pgp-sign-Multipart_Mon_Mar__5_19:27:23_2007-1 Content-Type: text/plain; charset=ISO-2022-JP At Mon, 5 Mar 2007 18:44:19 +0900, OHARA Shigeki wrote: > Ruby 1.8.6 から Time#to_s の形式が > RFC 2822 準拠に変更になるようなのですが、 > この形式が間違っているように思います。 (snip) > RFC 2822 の 3.3. Date and Time Specification によると、 > > date = day month year > > が正しいようです。  確かにその通りですね。修正します。 % /usr/local/bin/ruby -v -rtime -e 'Time.rfc2822(Time.now.to_s)' ruby 1.8.6 (2007-03-05 patchlevel 0) [i686-darwin8.8.3] /usr/local/lib/ruby/1.8/time.rb:296:in `rfc2822': not RFC 2822 compliant date: "Mon, Mar 05 2007 19:25:08 +0900" (ArgumentError) from -e:1  ちょっと情けない…。 -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Different eyes see different things, Different hearts beat on different strings -- But there are times for you and me when all such things agree" --pgp-sign-Multipart_Mon_Mar__5_19:27:23_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF6/CLkgvvx5/Z4e4RAkwQAKDX65BmtKcigSoPLvR+TcE9RpdcSQCfbl30 w53Afz+TFNFw8/atN7D0its= =Ipto -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Mar__5_19:27:23_2007-1--