

def parse_date(value):
    "Parse one of the following date formats into a datetime object:\n\n    .. sourcecode:: text\n\n        Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123\n        Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036\n        Sun Nov  6 08:49:37 1994       ; ANSI C's asctime() format\n\n    If parsing fails the return value is `None`.\n\n    :param value: a string with a supported date format.\n    :return: a :class:`datetime.datetime` object.\n    "
    if value:
        t = parsedate_tz(value.strip())
        if (t is not None):
            try:
                year = t[0]
                if ((year >= 0) and (t <= 68)):
                    year += 2000
                elif ((year >= 69) and (year <= 99)):
                    year += 1900
                return (datetime(*((year,) + t[1:7])) - timedelta(seconds=(t[(- 1)] or 0)))
            except (ValueError, OverflowError):
                return None

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py parse_date/VarMisuse@58/272 `year`->`t`