MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_local_timestamp

Method _get_local_timestamp

Lib/zoneinfo/_zoneinfo.py:185–191  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

183 return self._ttinfos[idx]
184
185 def _get_local_timestamp(self, dt):
186 return (
187 (dt.toordinal() - EPOCHORDINAL) * 86400
188 + dt.hour * 3600
189 + dt.minute * 60
190 + dt.second
191 )
192
193 def __str__(self):
194 if self._key is not None:

Callers 2

fromutcMethod · 0.95
_find_transMethod · 0.95

Calls 1

toordinalMethod · 0.80

Tested by

no test coverage detected