MCPcopy
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
39def 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
45class TestDST:

Callers 1

_test_offsetMethod · 0.85

Calls 1

utcoffsetMethod · 0.80

Tested by

no test coverage detected