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

Method utcoffset

src/pendulum/tz/timezone.py:221–222  ·  view source on GitHub ↗
(self, dt: _datetime.datetime | None)

Source from the content-addressed store, hash-verified

219 return self._offset
220
221 def utcoffset(self, dt: _datetime.datetime | None) -> _datetime.timedelta:
222 return self._utcoffset
223
224 def dst(self, dt: _datetime.datetime | None) -> _datetime.timedelta:
225 return _datetime.timedelta()

Callers 15

precise_diffFunction · 0.80
_safe_timezoneFunction · 0.80
get_offsetMethod · 0.80
addMethod · 0.80
__new__Method · 0.80
convertMethod · 0.80
_format_tokenMethod · 0.80
test_utcoffsetFunction · 0.80
test_setting_timezoneFunction · 0.80
test_rfc_3339Function · 0.80
test_rfc_3339_extendedFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_utcoffsetFunction · 0.64
test_setting_timezoneFunction · 0.64
test_rfc_3339Function · 0.64
test_rfc_3339_extendedFunction · 0.64
test_iso8601_datetimeFunction · 0.64
test_basic_convertFunction · 0.64
test_repeated_timeFunction · 0.64