From Robert.McGehee at geodecapital.com  Mon Aug 29 19:39:51 2005
From: Robert.McGehee at geodecapital.com (Robert.McGehee@geodecapital.com)
Date: Mon, 29 Aug 2005 19:39:51 +0200 (CEST)
Subject: [Rd] Problems setting and adding POSIX dates (PR#8103)
Message-ID: <20050829173951.1A7301994C@slim.kubism.ku.dk>

> tm <- ISOdate(2005, 08, 29, hour =3D 12, tz =3D "EDT")
> tm
[1] "2005-08-29 11:00:00 EDT"
## Firstly, notice that the hour is 11, but was set to 12.

> tm + 0
[1] "2005-08-29 11:00:00 EDT"
> tm + 3600  ## Add an hour
[1] "2005-08-29 12:00:00 EDT"

> tm + c(0, 1) * 3600  ## Repeat
[1] "2005-08-29 07:00:00 Eastern Daylight Time"
[2] "2005-08-29 08:00:00 Eastern Daylight Time"

Oddly, the first two results differ from the second two by 4 hours.

> version
         _             =20
platform i386-pc-mingw32
arch     i386          =20
os       mingw32       =20
system   i386, mingw32 =20
status                 =20
major    2             =20
minor    1.1           =20
year     2005          =20
month    06            =20
day      20            =20
language R            =20



Robert McGehee
Quantitative Analyst
Geode Capital Management, LLC
53 State Street, 5th Floor | Boston, MA | 02109
Tel: 617/392-8396    Fax:617/476-6389
mailto:robert.mcgehee at geodecapital.com



This e-mail, and any attachments hereto, are intended for us...{{dropped}}



[Rd] Problems setting and adding POSIX dates (PR#8103)
Robert.McGehee@geodecapital.com