[R] R couldnt recognize US Pasific timezome

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Mon Jul 9 10:46:29 CEST 2018

Several of the "conventional" three letter timezone abbreviations actually 
get re-used in different parts of the world, and not all operating system 
support for timezones include the same shortcuts. The solution is to use 
the correct timezone string rather than your familiar shortcut... you can 
look through the vector returned by the OlsonNames() function in general, 
but in your case just use "Etc/GMT+8" for standard time year-round. If you 
wanted daylight savings time support, you would use "America/Los_Angeles".

On Mon, 9 Jul 2018, Christofer Bogaso wrote:

> Hi,
> I wanted to convert Epoch time to readable time with US Pacific Time Zone
> using 'anytime' package, as below:
>> library(anytime)
>> anytime(1417411980, tz = 'PST')
> [1] "2014-12-01 05:33:00 GMT"
> Warning message:
> In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'PST'
> However it appears that R couldn't recognize the PST as the short form of
> Pacific time zone.
> Any help to correctly change Epoch time to corresponding pacific time would
> be helpful.
> Thanks,
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil using dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                       Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k

More information about the R-help mailing list