How to do math with time string?

Hi, I tried searching on this topic but couldn’t find one. If someone knows of a thread that answers this let me know.

My problem is this:
I have two strings: “00:23:01” and “01:24:56”. As you might guess these are string representation of 2 difference times. I’d like to calculate the difference between these time instances and return the value in seconds using AppleScript. What do you think is the best way to solving this? Let me know. Thanks a bunch!

Hi ryos,

this is very easy:

set a to "00:23:01"
set b to "01:24:56"
(date b) - (date a)

holy cow, that IS easy. Thanks StefanK!

Moving to OS X forum. [Code Exchange note]