add method to parse times.