Re: [R] R couldnt recognize US Pasific timezome

2018-07-09 Thread MacQueen, Don via R-help
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" 
 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]]
>
> __
> R-help@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 NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
   Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k

__
R-help@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.


__
R-help@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.


Re: [R] R couldnt recognize US Pasific timezome

2018-07-09 Thread Jeff Newmiller
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@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 NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k

__
R-help@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.


[R] R couldnt recognize US Pasific timezome

2018-07-09 Thread Christofer Bogaso
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@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.