in reply to Inconsistent results of subtraction with DateTime?

Aug 6 is 5 days later than Aug 1 (Delta_days)

Aug 6 @ 8:10 is 4 days and 23.98 hours later than Aug 1 @ 8:09 (time subtraction)

... Makes sense to me. You should check the documentation to be sure.

  • Comment on Re: Inconsistent results of subtraction with DateTime?

Replies are listed 'Best First'.
Re^2: Inconsistent results of subtraction with DateTime?
by jabowery (Beadle) on Aug 07, 2013 at 21:09 UTC
    Ah, thanks. I had made the mistake of thinking that the times were identical between the two datetimes (I didn't even look at the output of the 'p' debugger commands I was so "sure") when, in fact, they were offset from each other by some minutes.