Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_diff_in_hours_positive
Function
test_diff_in_hours_positive
tests/datetime/test_diff.py:110–112 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
108
109
110
def
test_diff_in_hours_positive():
111
dt = pendulum.datetime(2000, 1, 1)
112
assert dt.diff(dt.add(days=1).add(hours=2)).in_hours() == 26
113
114
115
def
test_diff_in_hours_negative_with_sign():
Callers
nothing calls this directly
Calls
4
in_hours
Method · 0.80
datetime
Method · 0.45
diff
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…