Add tests for time format.
Also, remove unnecessary `I` and `S` format values.