Re: [R] c() with POSIXlt objects and their timezone is lost

2014-07-01 Thread Uwe Ligges
On 23.06.2014 23:52, Marc Girondot wrote: When two POSIXlt objects are combine with c(), they lost their tzone attribute, even if they are the same. I don't know if it is a feature, but I don't like it ! Marc > es <- strptime("2010-02-03 10:20:30", format="%Y-%m-%d %H:%M:%S", tz="UTC") > es

Re: [R] c() with POSIXlt objects and their timezone is lost

2014-06-24 Thread Jeff Newmiller
This is a rope. Don't push it. Been there, been swatted. The current structure of R cannot support vectors of POSIXt timestamps that have different tzones in different elements. You can keep a parallel vector of tzones separately and manage environment variable TZ as needed if you really must

[R] c() with POSIXlt objects and their timezone is lost

2014-06-23 Thread Marc Girondot
When two POSIXlt objects are combine with c(), they lost their tzone attribute, even if they are the same. I don't know if it is a feature, but I don't like it ! Marc > es <- strptime("2010-02-03 10:20:30", format="%Y-%m-%d %H:%M:%S", tz="UTC") > es [1] "2010-02-03 10:20:30 UTC" > attributes(