MCPcopy Index your code
hub / github.com/python/cpython / parsedate_tz

Function parsedate_tz

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 1

parsedateFunction · 0.85

Calls 1

_parsedate_tzFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…