Date utilities reference¶
parse_imf_date ¶
Parse a date value using the Internet Message Format (IMF) as defined by RFC 5322.
This is the date format used by the HTTP and email specifications, among others.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data | str | The date value to parse. | required |
Returns:
Type | Description |
---|---|
datetime | A |
Raises:
Type | Description |
---|---|
ValueError | If the date value is not valid. |