

def _dump_date(d, delim):
    'Used for `http_date` and `cookie_date`.'
    if (d is None):
        d = gmtime()
    elif isinstance(d, datetime):
        d = d.utctimetuple()
    elif isinstance(d, (int, float)):
        d = gmtime(d)
    return ('%s, %02d%s%s%s%s %02d:%02d:%02d GMT' % (('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')[d.tm_wday], d.tm_mday, delim, ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')[(d.tm_mon - 1)], delim, str(d.tm_year), delim.tm_hour, d.tm_min, d.tm_sec))

dataset/ETHPy150Open pecan/pecan/pecan/middleware/static.py _dump_date/VarMisuse@147/246 `d`->`delim`