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/time/test_diff.py:8–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
7
8
def
test_diff_in_hours_positive():
9
dt = Time(12, 34, 56)
10
assert dt.diff(dt.add(hours=2).add(seconds=3672)).in_hours() == 3
11
12
13
def
test_diff_in_hours_negative_with_sign():
Callers
nothing calls this directly
Calls
4
diff
Method · 0.95
add
Method · 0.95
Time
Class · 0.90
in_hours
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…