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?
The -d argument applies to date from coreutils (Linux) only.
-d
coreutils
In BSD/OS X, use
date -u -r $i +%T