From: Fred Phillips Date: 2008-07-30T09:27:40+09:00 Subject: Re: Time.rb path --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed Jul 30 09:14:02 2008, Matias Pablo Brutti wrote: > While working on a project I came across with a problem that I traced to > Time.rb. Some rss feeds return time in the following format "Mon, 28 Jul > 2008 5:56 pm PDT". Searching inside time.rb code I was not able to find a= ny > rfc capable of parsing that string. Is there any rfc which manages this > type of time format which contains AM/PM ? (rfc2822 does not) if there is > and it is not yet implemented I would more than glad to code it, it is ju= st > that I do not know I should just monkey patch the class to make this work= or > if I could implement an existent rfc that will solve the issue, and truly= I > would rather do the last, "mucho" more interesting. :D >=20 You might want to have a look at chronic[1] it might help. [1] http://chronic.rubyforge.org/ --=20 Fred O. Phillips http://fophillips.org BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41 --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkiPtZoACgkQ5PeHTxVFnUGH2wCePIJ4PlEfgtTEdWnrS20R0DAf a1sAniCJm4gCr9tnkRLE+j1WzmLfz4Yo =RBsQ -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--