Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaxZonedDateTime() <= LaxZonedDateTime() #5

Open
mattBrzezinski opened this issue Mar 10, 2021 · 0 comments
Open

LaxZonedDateTime() <= LaxZonedDateTime() #5

mattBrzezinski opened this issue Mar 10, 2021 · 0 comments

Comments

@mattBrzezinski
Copy link
Member

An unrepresentable LaxZonedDateTime is supposed to be treated like a NaN. However currently:

julia> using LaxZonedDateTimes

julia> LaxZonedDateTime() <= LaxZonedDateTime()
true

julia> NaN <= NaN
false

This problem can be corrected but doing so makes it impossible to use an ambiguous or non-existent LZDT as an AnchoredInterval anchor. This can also be corrected by making _isfinite(x::LaxZonedDateTime) = isrepresentable(x) but this implies that ambiguous/non-existent values are finite which doesn't seem right to me.

I suspect we may want to have non-representable values with ordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant