luxon.utils.timezone.
parse_http_date
(http_date, obs_date=False)[source]¶Converts an HTTP date string to a datetime instance.
Parameters: |
|
---|---|
Returns: | A UTC datetime instance corresponding to the given HTTP date. |
Return type: | datetime |
Raises: | ValueError – http_date doesn’t match any of the available time formats |
luxon.utils.timezone.
TimezoneGMT
[source]¶GMT timezone class implementing GMT Timezone
dst
(dt)[source]¶Return the daylight saving time (DST) adjustment.
GMT has no daylight savings time. Always Zero.
Parameters: | dt (datetime.datetime) – Ignored |
---|---|
Returns: | DST adjustment for GMT. |
Return type: | datetime.timedelta |