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") , units='secs') )
[1] 29399

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to