From: "Shot (Piotr Szotkowski)" Date: 2009-06-23T20:56:31+09:00 Subject: Re: ruby datetime --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sriram Varahan: > I have two time objects: > # 2 days ago > time1 =3D Time.now - 48 * 3600 > #=3D> Sun Jun 21 16:56:33 +0530 2009 > time2 =3D Time.now > #=3D> Tue Jun 23 16:57:05 +0530 2009 > I need to create a third time object which will have the date from time2 > and the time from time1. time3 =3D time1 + 48 * 3600 (Although I think if you let us know *why* you need these dates, a simpler solution would be possible.) =E2=80=94 Shot --=20 In Focus: At Home, Donald Knuth Mows His N =C3=97 N Lawn With Stunning O(N = log N) Algorithm That He =E2=80=98Whipped Up One Morning Over Coffee=E2=80=99 = [patentlyfalse] --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpAwqQACgkQi/mCfdEo8UoTQQCffsXKd4Tlt/10jx//Xua5tC4K 6tcAoMKMF1G2aTtVmAQv6x7cragCGhIp =JpAk -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--