Skip to content
Prev 13387 / 63421 Next

proposed change to [.POSIXct

Sorry, but you really do not want that the change your patch makes.
Copying across the attributes will for example copy the original names,
any dim's etc.  There is a very good reason why [ does not do that itself.

I am not even sure you want to preserve the "tzone" attribute.  A POSIXct
time is an absolute time, and that attribute is just a reminder of where
it came from.  Since you have operated on it, the history is broken.

As timezones are always used when printing, I don't see anything
problematic about your example.  Do you have a more convincing example
from `which has cause several problems for me in the past'?
On Thu, 19 Aug 2004, Whit Armstrong wrote: