MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / parsedate_tz

Function parsedate_tz

tools/python-3.11.9-amd64/Lib/email/_parseaddr.py:45–55  ·  view source on GitHub ↗

Convert a date string to a time tuple. Accounts for military timezones.

(data)

Source from the content-addressed store, hash-verified

43
44
45def parsedate_tz(data):
46 """Convert a date string to a time tuple.
47
48 Accounts for military timezones.
49 """
50 res = _parsedate_tz(data)
51 if not res:
52 return
53 if res[9] is None:
54 res[9] = 0
55 return tuple(res)
56
57def _parsedate_tz(data):
58 """Convert date to extended time tuple.

Callers 4

parsedateFunction · 0.85
cached_requestMethod · 0.85
cache_responseMethod · 0.85
update_headersMethod · 0.85

Calls 2

_parsedate_tzFunction · 0.85
tupleClass · 0.85

Tested by

no test coverage detected