def cookie_date(epoch_seconds=None):
 rfcdate = formatdate(epoch_seconds)
 return ('%s-%s-%s GMT' % (rfcdate[:7], rfcdate[8:11], rfcdate[12:25]))

def cookie_date ( epoch_seconds = None ) : rfcdate = formatdate ( epoch_seconds ) return ( '%s-%s-%s GMT' % ( rfcdate [ : 7 ] , rfcdate [ 8 : 11 ] , rfcdate [ 12 : 25 ] ) )
formats the time to ensure compatibility with netscapes cookie standard .