Re: [R] TIme Zone error

2019-01-26 Thread Jeff Newmiller
Read the help file ?as.POSIXct "" as time zone is not an error. On January 26, 2019 1:15:21 PM PST, Christofer Bogaso wrote: >Hi, > >I want to set a specific Timezone for my R environment, with below >syntax: > >> Sys.getenv("Asia/Calcutta") > >[1] "" > >> >But it sets to some blank timezone.

Re: [R] TIme Zone error

2019-01-26 Thread William Dunlap via R-help
> Sys.setenv(TZ="US/Eastern") > as.POSIXlt("2019-01-26 01:19") [1] "2019-01-26 01:19:00 EST" > Sys.setenv(TZ="Asia/Calcutta") > as.POSIXlt("2019-01-26 01:19") [1] "2019-01-26 01:19:00 IST" (Sys.getenv("Asia/Calcutta") returns the value of the environment variable "Asia/Calcutta". It does not set

[R] TIme Zone error

2019-01-26 Thread Christofer Bogaso
Hi, I want to set a specific Timezone for my R environment, with below syntax: > Sys.getenv("Asia/Calcutta") [1] "" > But it sets to some blank timezone. I checked with OlsonNames(), to see available zones for R, where I found "Asia/Calcutta" available. I idea why R failed to set timezone