Skip to content
Prev 8544 / 63421 Next

difftime arithmetic (PR#2345)

BaRow> Full_Name: Barry Rowlingson Version: 1.6.0 OS: RH8
    BaRow> i386 Submission from: (NULL) (148.88.136.205)

    BaRow> Strange things happen if I premultiply a difftime()
    BaRow> object with a number.

Thank you for the bug report!
Well, it's ``just'' the internal  object bit that got lost -> is.object()

The bug is still there in R-devel,
and a shorter example is
Time difference of 0 secs
[1] 0
attr(,"units")
[1] "secs"
attr(,"class")
[1] "difftime"
[1] TRUE
[1] FALSE

----

We will have to fix that in the C code, too.
Martin