How to change the default time zone in R?

Paul PUGET picture Paul PUGET · Jun 16, 2011 · Viewed 49.2k times · Source

How can I change the default timezone in R? I'm working with time series. All my time series are defined in UTC time zone, but if I print a date it is always done in CET/CEST time zone.

Answer

Paul PUGET picture Paul PUGET · Jun 20, 2011

Another way to do it, without changing the whole computer time is using the setenv command like this : Sys.setenv(TZ='GMT')