Raphael TEYSSANDIER
08/12/2024, 12:03 PMMichael Paus
08/12/2024, 12:48 PMCLOVIS
08/12/2024, 1:06 PMRaphael TEYSSANDIER
08/12/2024, 2:11 PMfun Clock.System.nowTimeZone(
timeZone: TimeZone = TimeZone.currentSystemDefault()
): Long {
val now = now()
val offset = now.offsetIn(timeZone)
return now.toEpochMilliseconds() + offset.totalSeconds.times(1000)
}
CLOVIS
08/12/2024, 2:13 PMCLOVIS
08/12/2024, 2:14 PMClock
(not Clock.System
) to make them easier to test.Raphael TEYSSANDIER
08/12/2024, 2:16 PM