()
| 193 | |
| 194 | |
| 195 | def 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 | |
| 201 | def test_diff_for_humans_now_and_second(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…