I have a bit of a weird question. What is the prop...
# kotlinx-datetime
k
I have a bit of a weird question. What is the proper way to represent an open end range of two local times, where the
endExclusive
is midnight of the ‘next day’. Eg. I want to represent the following: • [00:00, 12:00) • [12:00, 00:00) I think the latter would be effectively an empty range because
00:00
is technically before
12:00
.
I suspect it’s not possible and this is impossible without context of date information, too.
h
What you mean is
[12:00, 24:00)
? I can see that being a useful feature, but I doubt it's supported.
k
Yes, precisely.