Hhmmss2Seconds — Take an input of the form hh:mm:ss and convert to seconds.
Number of seconds that corresponds to the amount of time passed in.
|StringVariable||A string of the form hh:mm:ss representing a time to convert to seconds.|
You can pass in a string that starts with a minus sign and it will return a negative number for the seconds.
Note also that you must have at least two digits for the hours but may have more.
Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.
For information regarding exceptions / errors, see here
% Hhmmss2Seconds 01:01:01
% set MyVar -01:01:01
% Hhmmss2Seconds @MyVar
% puts $MyVar