werkzeug.parse_date¶
-
werkzeug.
parse_date
(value)[source]¶ Parse one of the following date formats into a datetime object:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
If parsing fails the return value is None.
Parameters: value – a string with a supported date format. Returns: a datetime.datetime
object.