StringVariable | A string of the form hh:mm:ss representing a time to convert to 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.
% Hhmmss2Seconds 01:01:01
3661
% set MyVar -01:01:01
-01:01:01
% Hhmmss2Seconds @MyVar
-3661
% puts $MyVar
-3661