Skip to content
Prev 181507 / 398506 Next

Problem with fractional seconds

POSIXct is intended to represent date/times.  You can use format to just
show the times but the dates will still be there:
[1] "18:20:0000.910"

difftime objects can represent times although perhaps not
conveniently:
Time difference of 18.35699 hours

chron objects use the integer part as days and the
fractional part as fractions of days so can represent
whatever granularity you like up to machine precision
although they won't print it out by default but its there
as can be seen:
[1] "2009-05-26 18:52:12.221 EDT"
[1] 18:52:12
[1] 0.2209999
On Tue, May 26, 2009 at 6:14 PM, Tim Clark <mudiver1200 at yahoo.com> wrote: