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

Method _get_local_timestamp

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

Source from the content-addressed store, hash-verified

187 return self._ttinfos[idx]
188
189 def _get_local_timestamp(self, dt):
190 return (
191 (dt.toordinal() - EPOCHORDINAL) * 86400
192 + dt.hour * 3600
193 + dt.minute * 60
194 + dt.second
195 )
196
197 def __str__(self):
198 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