NAME
Seconds2Hhmmss — Convert a number of seconds to a string with form hh:mm:ss.
SYNOPSIS
Seconds2Hhmmss StringVariable
DESCRIPTION
Return Value
A string of the form hh:mm:ss.
Arguments
StringVariableQuantity of seconds to convert. Must be an integer.
More Info
You can enter in a negative number of seconds. The return string will be prefixed with a minus sign.

Note also that if the string returned will have at least two digits for the hours and 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
% Seconds2Hhmmss 60
00:01:00
% Seconds2Hhmmss 3600
01:00:00
% set MyVar 3600
3600
% Seconds2Hhmmss @MyVar
01:00:00
% puts $MyVar
01:00:00
KEYWORDS
conversion, datetime, string, time