Returns the time as a formatted string or as a table if no format is given.
Returns a table if no format was specified.
Formats the time in seconds
Returns a table with the time separated by units.