[R] timezone problems

From: Martin Keller-Ressel <mkeller_at_fam.tuwien.ac.at>
Date: Tue 05 Jul 2005 - 19:55:20 EST


Im using R 2.1.1 and running Code that previously worked (on R 2.1.0 I believe) using the 'timeDate' function from the fCalendar package. The code now throws an error:

Error in if (Sys.timezone() != "GMT") warning("Set timezone to GMT!")

However I have read the documentation of the fCalendar package and I have set my system variable TZ to GMT.
I tracked the error down to the function Sys.timezone() which returns NA in spite of what Sys.time() returns.

> Sys.timezone()

[1] NA

> Sys.time()

[1] "2005-07-05 08:41:53 GMT" My version:

> version

platform i386-pc-mingw32

arch     i386
os       mingw32

system i386, mingw32
major 2
minor 1.1
year 2005
month 06
day 20
language R

Any help is appreciated,

Martin Keller-Ressel

Martin Keller-Ressel
Research Unit of Financial and Actuarial Mathematics
TU Vienna

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Jul 05 19:03:10 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:13 EST