We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c757dbf commit b555398Copy full SHA for b555398
core/common/src/TimeZone.kt
@@ -174,5 +174,10 @@ public expect fun LocalDateTime.toInstant(offset: UtcOffset): Instant
174
*
175
* Note that it's not equivalent to `atTime(0, 0).toInstant(timeZone)`
176
* because a day does not always start at the fixed time 0:00:00.
177
+ * For example, if due do daylight saving time, clocks were shifted from 23:30
178
+ * of one day directly to 00:30 of the next day, skipping the midnight, then
179
+ * `atStartOfDayIn` would return the `Instant` corresponding to 00:30, whereas
180
+ * `atTime(0, 0).toInstant(timeZone)` would return the `Instant` corresponding
181
+ * to 01:00.
182
*/
183
public expect fun LocalDate.atStartOfDayIn(timeZone: TimeZone): Instant
0 commit comments