Jump to content

Minus with characters


Cyto

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:

 

  Quote

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.