Repository navigation
Why does subtracting two Timestamps return a Span instead of a SignedDuration
#626
|
I'm migrating a large codebase from In This works of course but it less discoverable than the |
Replies: 1 comment 1 reply
|
This is a really good question and a good call-out. I can't come up with a great answer to this other than the fact that In any case, I created #629 to track this. |
This is a really good question and a good call-out. I can't come up with a great answer to this other than the fact that
Spanis supposed to be the primary duration type in Jiff. And so all datetime types return it as a result of subtraction. In particular, theSignedDurationtype was added after the initial release of Jiff, and so wasn't present when I first wrote down theSubimpl forTimestamp.In any case, I created #629 to track this.