Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] timezone problems

Martin Keller-Ressel

2005-07-05

Replies:

Hi,

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
status
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@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.