Re: [R] Units of Difference Between Two Dates

2008-05-15 Thread Prof Brian Ripley
On Thu, 15 May 2008, Tom La Bone wrote: I would like all three of these calculations to give an answer in days (or at least the same units): as.POSIXct("1971-08-01 00:00:00") - as.POSIXct("1971-08-01 00:00:00") Time difference of 0 secs as.POSIXct("1971-08-01 12:00:00") - as.POSIXct("1971-

Re: [R] Units of Difference Between Two Dates

2008-05-15 Thread Uwe Ligges
Tom La Bone wrote: I would like all three of these calculations to give an answer in days (or at least the same units): as.POSIXct("1971-08-01 00:00:00") - as.POSIXct("1971-08-01 00:00:00") Time difference of 0 secs as.POSIXct("1971-08-01 12:00:00") - as.POSIXct("1971-08-01 00:00:00") Time

[R] Units of Difference Between Two Dates

2008-05-15 Thread Tom La Bone
I would like all three of these calculations to give an answer in days (or at least the same units): > as.POSIXct("1971-08-01 00:00:00") - as.POSIXct("1971-08-01 00:00:00") Time difference of 0 secs > > as.POSIXct("1971-08-01 12:00:00") - as.POSIXct("1971-08-01 00:00:00") Time difference of 12 h