dateparser/freshness_date_parser.py
def _parse_time(self, date_string, settings):
        """Attemps to parse time part of date strings like '1 day ago, 2 PM' """
        date_string = PATTERN.sub('', date_string)
        date_string = re.sub(r'\b(?:ago|in)\b', '', date_string)
        try:
            return time_parser(date_string)
        except:
            pass
def _parse_time(self, date_string, settings):
        """Attemps to parse time part of date strings like '1 day ago, 2 PM' """
        date_string = PATTERN.sub('', date_string)
        date_string = re.sub(r'\b(?:ago|in)\b', '', date_string)
        try:
            return time_parser(date_string)
        except:
            pass
def _parse_time ( self , date_string , settings ) : date_string = PATTERN . sub ( '' , date_string ) date_string = re . sub ( r'\b(?:ago|in)\b' , '' , date_string ) try : return time_parser ( date_string ) except : pass
Attemps to parse time part of date strings like '1 day ago, 2 PM'
Attemps to parse time part of date strings like 1 day ago 2 PM