Cleaner way to test for existence of `total_seconds()`.

Signed-off-by: Paul G <pg@example.com>