Skip to content

date/time arithmetic

3 messages · Parlamis Franklin, Gabor Grothendieck

6 days later
#
I don't know what is wrong but you could use the numeric class
instead of the difftime class as a workaround:

x <- Sys.time()
y <- x + 3600
diffyx <- as.numeric(y) - as.numeric(x)
identical(y - diffyx, x) # TRUE
On 11/23/05, Parlamis Franklin <fparlamis at mac.com> wrote: