• Barry Warsaw's avatar
    formatdate(): An implementation to replace the one borrowed from · aa79f4d4
    Barry Warsaw authored
    rfc822.py.  The old rfc822.formatdate() produced date strings using
    obsolete syntax.  The new version produces the preferred RFC 2822
    dates.
    
    Also, an optional argument `localtime' is added, which if true,
    produces a date relative to the local timezone, with daylight savings
    time properly taken into account.
    aa79f4d4
Utils.py 4.16 KB