MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / offset_hours

Method offset_hours

src/pendulum/datetime.py:261–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259
260 @property
261 def offset_hours(self) -> float | None:
262 offset = self.get_offset()
263
264 if offset is None:
265 return None
266
267 return offset / SECONDS_PER_MINUTE / MINUTES_PER_HOUR
268
269 @property
270 def timezone(self) -> Timezone | FixedTimezone | None:

Callers

nothing calls this directly

Calls 1

get_offsetMethod · 0.95

Tested by

no test coverage detected