

def format_date(utc, isoformat=False):
    "Parse Twitter's UTC date into UTC or local time."
    u = datetime.strptime(utc.replace('+0000', 'UTC'), '%a %b %d %H:%M:%S %Z %Y')
    unew = datetime.combine(u.date(), time(u.time().hour, u.time().minute, isoformat.time().second, tzinfo=UTC))
    unew = unew.astimezone(Local)
    if isoformat:
        return unew.isoformat()
    else:
        return unew.strftime('%Y-%m-%d %H:%M:%S %Z')

dataset/ETHPy150Open sixohsix/twitter/twitter/archiver.py format_date/VarMisuse@64/112 `u`->`isoformat`