Skip to content
Prev 79718 / 398502 Next

How to convert time to days

The word "secs" appears in "Run time: 1.960625 secs" because you put 
it there in your cat() statement. It has nothing to do with the 
number itself.

Simply try typing

    end.time - begin.time

at the prompt, and see what you get.

Then see
   ?difftime
for more information. Example
    difftime(end.time,begin.time,units='hours')

To get the interval formatted as "1 day, 23 hours, x minutes, x 
seconds" you will have to do more work.

-Don
At 4:18 PM +0200 10/26/05, Muhammad Subianto wrote: