werkzeug.cookie_date¶
Formats the time to ensure compatibility with Netscape’s cookie standard.
Accepts a floating point number expressed in seconds since the epoch in, a datetime object or a timetuple. All times in UTC. The
parse_date()
function can be used to parse such a date.Outputs a string in the format
Wdy, DD-Mon-YYYY HH:MM:SS GMT
.Parameters: expires – If provided that date is used, otherwise the current.