code: def parse_datetime(self, text):
          '''Parse datetime from line of text.'''
          return parse_datetime(text, date_format=self.date_format,
                                is_day_period=self.is_day_periodf parse_datetime(self, text):
          '''Parse datetime from line of text.'''
          return parse_datetime(text, date_format=self.date_format,
                                is_day_period=self.is_day_period)
docs: Parse datetime from line of text.