Skip to content
Prev 69592 / 398525 Next

time zones, daylight saving etc.

I have tried this but on Windows XP R 2.1.0 found I had to set it outside of
R prior to starting R. 

1. unsuccessful
[1] "2005-05-12 09:08:03 Eastern Daylight Time"
[1] "2005-05-12 09:08:12 Eastern Daylight Time"

2. OK

C:\>set tz=GMT

C:\>start "" "\Program Files\R\rw2010\bin\r.exe"

R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.1.0 Patched (2005-04-18), ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.
[1] "2005-05-12 13:10:58 GMT"

I assume it could be set in .Renviron but it would be nice if one
could set it right from within R so that one can write a function
that sets it, does processing and then sets it back.  Don't know
if this is possible.
On 5/12/05, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote: