I have a variable of $i which is seconds in a shell script, and I am trying to convert it to 24 HOUR HH:MM:SS. Is this possible in shell?
Continuing @Daren`s answer, just to be clear: If you want to use the conversion to your time zone, don't use the "u" switch, as in: date -d @$i +%T or in some cases date -d @"$i" +%T.
date -d @$i +%T
date -d @"$i" +%T