building up logic for cases to parse times