Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ get_utc_offset_hours
Function
get_utc_offset_hours
pandas/tests/tseries/offsets/test_dst.py:39–42 ·
view source on GitHub ↗
(ts)
Source
from the content-addressed store, hash-verified
37
38
39
def
get_utc_offset_hours(ts):
40
# take a Timestamp and compute total hours of utc offset
41
o = ts.utcoffset()
42
return
(o.days * 24 * 3600 + o.seconds) / 3600.0
43
44
45
class
TestDST:
Callers
1
_test_offset
Method · 0.85
Calls
1
utcoffset
Method · 0.80
Tested by
no test coverage detected