[Rd] tzone attribute gets stripped on POSIXct variable

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun, 29 Nov 2009 19:38:17 -0500


The POSIXct variable xx has a tzone attribute but if I add 1 second to it then the tzone attribute gets stripped. Is that intended?

> xx <- as.POSIXct(format(Sys.time()), tz = "")
> dput(xx)

structure(1259541335.099, class = c("POSIXt", "POSIXct"), tzone = "")
> dput(xx+1)

structure(1259541336.099, class = c("POSIXt", "POSIXct"))

> R.version.string # Windows Vista
[1] "R version 2.10.0 Patched (2009-11-21 r50532)"

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 30 Nov 2009 - 00:45:26 GMT

This archive was generated by hypermail 2.2.0 : Mon 30 Nov 2009 - 11:30:52 GMT