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

Function _date_to_string

Lib/plistlib.py:154–160  ·  view source on GitHub ↗
(d, aware_datetime)

Source from the content-addressed store, hash-verified

152
153
154def _date_to_string(d, aware_datetime):
155 if aware_datetime:
156 d = d.astimezone(datetime.UTC)
157 return '%04d-%02d-%02dT%02d:%02d:%02dZ' % (
158 d.year, d.month, d.day,
159 d.hour, d.minute, d.second
160 )
161
162def _escape(text):
163 m = _controlCharPat.search(text)

Callers 1

write_valueMethod · 0.85

Calls 1

astimezoneMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…