We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b9e16 commit c4e3957Copy full SHA for c4e3957
neo4j/time/__init__.py
@@ -515,9 +515,10 @@ def __mod__(self, other):
515
# )
516
seconds = self[2] + Decimal(self[3]) / NANO_SECONDS
517
seconds, subseconds = symmetric_divmod(seconds % other, 1)
518
+ ns = subseconds * NANO_SECONDS
519
return Duration(months=round_half_to_even(self[0] % other),
520
days=round_half_to_even(self[1] % other),
- seconds=seconds, subseconds=subseconds)
521
+ seconds=seconds, nanoseconds=ns)
522
return NotImplemented
523
524
@deprecated("Will be removed in 5.0.")
0 commit comments