[R] timezone problems

Martin Keller-Ressel mkeller at fam.tuwien.ac.at
Tue Jul 5 11:55:20 CEST 2005


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

More information about the R-help mailing list