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

Function _build_struct_time

tools/python-3.11.9-amd64/Lib/datetime.py:156–159  ·  view source on GitHub ↗
(y, m, d, hh, mm, ss, dstflag)

Source from the content-addressed store, hash-verified

154
155
156def _build_struct_time(y, m, d, hh, mm, ss, dstflag):
157 wday = (_ymd2ord(y, m, d) + 6) % 7
158 dnum = _days_before_month(y, m) + d
159 return _time.struct_time((y, m, d, hh, mm, ss, wday, dnum, dstflag))
160
161def _format_time(hh, mm, ss, us, timespec='auto'):
162 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