Refactor and restructure the time parser.

Make the code easier to work with.