Re: [R] date arithmetic discrepancy

2012-01-28 Thread peter dalgaard
On Jan 28, 2012, at 07:25 , Berend Hasselman wrote: > > On 27-01-2012, at 21:45, Ty Canuck wrote: > >> What accounts for the different result? >> >>> as.numeric(as.POSIXct("2012-01-13 08:10:00") - as.POSIXct("2012-01-13 >> 00:00:00") , units='secs') >> [1] 29400 >> >>> trunc(as.numeric(as.POS

Re: [R] date arithmetic discrepancy

2012-01-27 Thread Berend Hasselman
On 27-01-2012, at 21:45, Ty Canuck wrote: > What accounts for the different result? > >> as.numeric(as.POSIXct("2012-01-13 08:10:00") - as.POSIXct("2012-01-13 > 00:00:00") , units='secs') > [1] 29400 > >> trunc(as.numeric(as.POSIXct("2012-01-13 08:10:00") - > as.POSIXct("2012-01-13 00:00:00") ,