In the documentation of `LocalDate.atTime` : > ...
# kotlinx-datetime
c
In the documentation of
LocalDate.atTime
:
For finding an instant that corresponds to the start of a date in a particular time zone, consider using LocalDate.atStartOfDayIn function because a day does not always start at the fixed time 00000.
Out of curiosity, does that regularly happen? If it was a one-time thing, I'm curious when and why
k
Don’t some time zones perform daylight savings switches at would be midnight? So it jumps directly from
23:59:59.9999
to
01:00:00
?
I don’t know which ones in particular, but I’m fairly certain that’s a thing.
c
Oh, that would make sense. I don't know
k
This comment in particular makes me think that’s the case: https://github.com/Kotlin/kotlinx-datetime/pull/390#issue-2268268558
d