Re: time-delta
This is actually a fair bit more complicated than that. For one thing, the delta depends on TimeZones which may not be available.
So the approach we have chosen for *temporal* is to be explicit. So for `Instant` you'd do
```
if (instant1.milliseconds - instant2.milliseconds > instant3.milliseconds - instant4.milliseconds) {
// do something
}
```
If you assume `CivilDate` then `date1 - date2` will never give you a result that can in any way be relied upon to be correct. So being more explicit ensures that the result will actually be what you'd expect.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/311#issuecomment-434740353