Re: [R] probable timezone confusion with as.yearmon

2010-03-18 Thread Gabor Grothendieck
No, its not documented in the released version of zoo but it is in the development version of zoo. There is more on time date classes in R News 4/1. On Thu, Mar 18, 2010 at 7:47 PM, Peter Keller wrote: > > Thanks, that clears that up. > > Is this behavior documented in the help?  I've looked, bu

Re: [R] probable timezone confusion with as.yearmon

2010-03-18 Thread Peter Keller
Thanks, that clears that up. Is this behavior documented in the help? I've looked, but didn't see anything which noted a conversion to GMT. Perhaps I just don't understand the different time methods, which is entirely possible since I'm a relative beginner. Peter -- View this message in co

Re: [R] probable timezone confusion with as.yearmon

2010-03-18 Thread Gabor Grothendieck
as.yearmon converts relative to GMT. If you want something else convert it to character first: as.yearmon(format(...)) On Thu, Mar 18, 2010 at 2:20 PM, Peter Keller wrote: > It looks like a timezone issue, and it's causing confusion to me at least. > > My original data: > gmt <- > c("19880101

[R] probable timezone confusion with as.yearmon

2010-03-18 Thread Peter Keller
It looks like a timezone issue, and it's causing confusion to me at least. My original data: gmt <- c("19880101 ", "19880101 0100", "19880101 0300", "19880101 0400", "19880101 0500", "19880101 0600") These were converted to local dates/times with akst<-strptime(gmt,format="%Y%m%d %H%M")-(3600