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
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
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(
3 matches
Mail list logo