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

Function _need_normalize_century

Lib/_pydatetime.py:206–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205_normalize_century = None
206def _need_normalize_century():
207 global _normalize_century
208 if _normalize_century is None:
209 try:
210 _normalize_century = (
211 _time.strftime("%Y", (99, 1, 1, 0, 0, 0, 0, 1, 0)) != "0099")
212 except ValueError:
213 _normalize_century = True
214 return _normalize_century
215
216# Correctly substitute for %z and %Z escapes in strftime formats.
217def _wrap_strftime(object, format, timetuple):

Callers 1

_wrap_strftimeFunction · 0.85

Calls 1

strftimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…