Re: [Rd] Adding difftime objects to POSIXt objects

2007-02-21 Thread Prof Brian Ripley
This is known, and not easy to solve given the way dispatch works for binary operators. The documentation was broken when Ops.difftime was introduced. You have found the known fix On Wed, 21 Feb 2007, Jeffrey Horner wrote: > Jeffrey Horner wrote: >> Hello, >> >> ?DateTimeClasses states t

Re: [Rd] Adding difftime objects to POSIXt objects

2007-02-21 Thread Jeffrey Horner
Jeffrey Horner wrote: > Hello, > > ?DateTimeClasses states that "one can add or subtract a number of > seconds or a 'difftime' object from a date-time object, but not add two > date-time objects." > > So, is the below expected behavior? > > > x <- Sys.time() > > x > [1] "2007-02-21 16:19:56

[Rd] Adding difftime objects to POSIXt objects

2007-02-21 Thread Jeffrey Horner
Hello, ?DateTimeClasses states that "one can add or subtract a number of seconds or a 'difftime' object from a date-time object, but not add two date-time objects." So, is the below expected behavior? > x <- Sys.time() > x [1] "2007-02-21 16:19:56 CST" > x + as.difftime("1","%H") [1] "2007-