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

Method local

tools/python-3.11.9-amd64/Lib/datetime.py:1871–1873  ·  view source on GitHub ↗
(u)

Source from the content-addressed store, hash-verified

1869 max_fold_seconds = 24 * 3600
1870 t = (self - epoch) // timedelta(0, 1)
1871 def local(u):
1872 y, m, d, hh, mm, ss = _time.localtime(u)[:6]
1873 return (datetime(y, m, d, hh, mm, ss) - epoch) // timedelta(0, 1)
1874
1875 # Our goal is to solve t = local(u) for u.
1876 a = local(t) - t

Callers

nothing calls this directly

Calls 2

datetimeClass · 0.85
timedeltaClass · 0.85

Tested by

no test coverage detected