def http_date(epoch_seconds=None):
    """
    Formats the time to match the RFC1123 date format as specified by HTTP
    RFC2616 section 3.3.1.

    Accepts a floating point number expressed in seconds since the epoch, in
    UTC - such as that outputted by time.time(). If set to None, defaults to
    the current time.

    Outputs a string in the format 'Wdy, DD Mon YYYY HH:MM:SS GMT'.
    """
    rfcdate = formatdate(epoch_seconds)
    return rfcdate[:25] % '%s GMT'

# Base 36 functions: useful for generating compact URLs
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/utils/http.py/http_date/swapped operands of `%`