kevin.cianfarini
04/29/2025, 1:20 PMval min = LocalTime(hour = 0, minute = 0, second = 0, nanosecond = 0)
val max = LocalTime(hour = 23, minute = 59, second = 59, nanosecond = 999_999_999)
Would there be any interest in accepting a PR that specifies LocalTime.MIN
and LocalTime.MAX
like both Instant and LocalDateTime have?Dmitry Khalanskiy [JB]
04/29/2025, 2:23 PMlike both Instant and LocalDateTime haveWhat do you mean? Neither exposes their
MIN
and MAX
.
Would there be any interest in [...]No, because both are error-prone. See https://github.com/Kotlin/kotlinx-datetime/issues/490andLocalTime.MIN
LocalTime.MAX
kevin.cianfarini
04/29/2025, 2:49 PM> like both Instant and LocalDateTime have
What do you mean? Neither exposes theirYeah, whoops, I meant distant future and past.andMIN
.MAX
No, because both are error-prone. SeeGotcha! I’ll comment in that issue.