Skip to content

help regarding storing time difference values in same unit?

3 messages · Suresh_FSFM, jim holtman

#
Dear R-Experts, 

Seek your help.

In a List object e.g. Time_duration[[]], I am storing differece between two
time-stamps (start-time and end-time) for a certain event. 
Time difference does not remain constant for, say, 10 observations.
Each time, the time difference is given in different time units: seconds /
hours / minutes.
Can you please tell me - how I can store the values of time difference in
just one time unit ?
It can be either seconds, or minutes or hours. The criterion is - unit
should be consistent.

Thank you in advance.

Regards,
Suresh
#
If you are using 'difftime', you can specify the units:
[1] "2009-01-01 10:00:00 GMT" "2009-03-04 13:00:00 GMT"
Time difference of 62.125 days
Time difference of 5367600 secs

        
On Thu, Feb 5, 2009 at 4:40 AM, Suresh_FSFM <suresh.ghalsasi at gmail.com> wrote:

  
    
#
Thank you, Jholtman ! :-)

Regards,
Suresh
jholtman wrote: