Formats period of time (in seconds) according to the directives in the given string.
Wilson de Almeida
MIT