From: Wesley J Landaker Date: 2004-03-24T11:43:05+09:00 Subject: Re: Limits of Time --Boundary-02=_2WPYAdEjLFvbT+Z Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 23 March 2004 7:37 pm, Chris Pine wrote: > Hello, > > We are making a website to handle all of our family pictures. The > earliest picture I found was 1850, so the code was > > Time.mktime(1850) > > and it said > > ArgumentError: time out of range > > So I tested it, and 1902 works but 1901 doesn't. Why on earth?=20 > Chris said I should ask you. We need to enter pictures that are > really old; is there a class we could use that is not so restrictive? Try this: require 'date' Date.new(1850) =2D-=20 Wesley J. Landaker OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2 --Boundary-02=_2WPYAdEjLFvbT+Z Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAYPW28KmKTEzW49IRAosRAJ9OxO/mXnVTej86liD7XnxCFu46FgCaAi03 oaLuuWzB05NYXJ/De4JKFMQ= =L/x6 -----END PGP SIGNATURE----- --Boundary-02=_2WPYAdEjLFvbT+Z--