MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / utcoffset

Method utcoffset

bson/tz_util.py:45–46  ·  view source on GitHub ↗
(self, dt: Optional[datetime])

Source from the content-addressed store, hash-verified

43 return f"{self.__class__.__name__}({self.__offset!r}, {self.__name!r})"
44
45 def utcoffset(self, dt: Optional[datetime]) -> timedelta:
46 return self.__offset
47
48 def tzname(self, dt: Optional[datetime]) -> str:
49 return self.__name

Callers 5

_datetime_to_millisFunction · 0.45
_min_datetime_msFunction · 0.45
_max_datetime_msFunction · 0.45
_encode_datetimeFunction · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected