Seconds to hms

time_seconds_to_hms

Convert a number of seconds to HH:MM:SS format.

Arguments

  • $1 (int): Non-negative integer number of seconds

Exit codes

  • 0: Success; 1 Invalid input

Output on stdout

  • HH:MM:SS string, e.g. "01:23:45"