Jump to content

Recommended Posts

Convert the times to seconds, do the math, and convert back.

 

Using addition as a better example,

0 * 3600 + 1 * 60 + 8.035 = 68.035
0 * 3600 + 2 * 60 + 3.054 = 123.054

123.054 + 68.035 = 191.089

191.089 / 3600 = 0 remainder 191.089
191.089 / 60   = 3 remainder 11.089

so 00:01:08,035 + 00:02:03,054 = 00:03:11,089

Can you give me a example code, cant come out  :confused:

 

Convert the times to seconds, do the math, and convert back.

 

Using addition as a better example,

0 * 3600 + 1 * 60 + 8.035 = 68.035
0 * 3600 + 2 * 60 + 3.054 = 123.054

123.054 + 68.035 = 191.089

191.089 / 3600 = 0 remainder 191.089
191.089 / 60   = 3 remainder 11.089

so 00:01:08,035 + 00:02:03,054 = 00:03:11,089

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.