Or (perhaps preferably) "US/Pacific" for daylight savings time support.
-- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 7/9/18, 1:46 AM, "R-help on behalf of Jeff Newmiller" <[email protected] on behalf of [email protected]> wrote: 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]] > > ______________________________________________ > [email protected] 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:<[email protected]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k ______________________________________________ [email protected] 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. ______________________________________________ [email protected] 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.

