[Rd] Problems setting and adding POSIX dates (PR#8103)

From: <Robert.McGehee_at_geodecapital.com>
Date: Mon 29 Aug 2005 - 17:39:51 GMT


> 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@geodecapital.com

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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Aug 30 03:45:59 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:46 GMT