time_as_words

Format a time in seconds, output as Xh Xmin Xs

Usage

Example:

>> TimeAsWords.format(12345)
=> "3h 25min 45s"

Arguments:

  • seconds: (Integer)