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.
> 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
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 pro
3 matches
Mail list logo