NAME
Hhmmss2Seconds — Take an input of the form hh:mm:ss and convert to seconds.
SYNOPSIS
Hhmmss2Seconds StringVariable
DESCRIPTION
Return Value
Number of seconds that corresponds to the amount of time passed in.
Arguments
StringVariableA string of the form hh:mm:ss representing a time to convert to seconds.
More Info
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.
EXAMPLES
% Hhmmss2Seconds 01:01:01
3661
% set MyVar -01:01:01
-01:01:01
% Hhmmss2Seconds @MyVar
-3661
% puts $MyVar
-3661
SEE ALSO
IsHhmmss, Seconds2Hhmmss
KEYWORDS
conversion, datetime, string, time