MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_diff_in_seconds_with_timezones

Function test_diff_in_seconds_with_timezones

tests/datetime/test_diff.py:195–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194
195def test_diff_in_seconds_with_timezones():
196 dt_ottawa = pendulum.datetime(2000, 1, 1, 13, tz="America/Toronto")
197 dt_vancouver = pendulum.datetime(2000, 1, 1, 13, tz="America/Vancouver")
198 assert dt_ottawa.diff(dt_vancouver).in_seconds() == 3 * 60 * 60
199
200
201def test_diff_for_humans_now_and_second():

Callers

nothing calls this directly

Calls 3

in_secondsMethod · 0.80
datetimeMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…