def cookie_date(epoch_seconds=None):
    """
    Formats the time to ensure compatibility with Netscape's cookie standard.

    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[:7], rfcdate[8:11], rfcdate[12:25]) % '%s-%s-%s GMT'
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/utils/http.py/cookie_date/swapped operands of `%`