Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the duration??

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
Hi all,

Does anyone know of a function to get the duration in seconds from a time in this format: hh:mi:ss.y
y being milliseconds.

I want the following result, 85 seconds from the time:

00:01:25.4 = 85 seconds

Or without the millisecond bit, as I can just search for it and calculate whether to round up or leave the value.

Thanks for any help!



 
Seconds = 3600*hh + 60*mi + ss + (y/1000) - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top