Moved time parsing into a separate package.