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

Function _build_struct_time

Lib/_pydatetime.py:161–164  ·  view source on GitHub ↗
(y, m, d, hh, mm, ss, dstflag)

Source from the content-addressed store, hash-verified

159
160
161def _build_struct_time(y, m, d, hh, mm, ss, dstflag):
162 wday = (_ymd2ord(y, m, d) + 6) % 7
163 dnum = _days_before_month(y, m) + d
164 return _time.struct_time((y, m, d, hh, mm, ss, wday, dnum, dstflag))
165
166def _format_time(hh, mm, ss, us, timespec='auto'):
167 specs = {

Callers 3

timetupleMethod · 0.85
timetupleMethod · 0.85
utctimetupleMethod · 0.85

Calls 2

_ymd2ordFunction · 0.85
_days_before_monthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…