def _db_str_to_datetime(value):
    if value is None:
        return None
    try:
        return from_utimestamp(long(value))
    except __HOLE__:
        pass
    try:
        return parse_date(value.strip(), utc, 'datetime')
    except Exception:
        return None
dataset/ETHPy150Open edgewall/trac/trac/ticket/model.py/_db_str_to_datetime