diff --git a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt index 0523028a..94646d3c 100644 --- a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt +++ b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt @@ -52,11 +52,11 @@ fun LocalDate.Companion.nowAt(timeZone: TimeZone): LocalDate { } -//val LocalDate.millisSinceEpochAtUtc: Long -// get() = this.toEpochMillisecondsAt(TimeZone.UTC) -// -//val LocalDate.millisSinceEpochAtSystemDefaultTimeZone: Long -// get() = this.toEpochMillisecondsAt(TimeZone.currentSystemDefault()) +val LocalDate.millisSinceEpochAtUtc: Long + get() = this.toEpochMillisecondsAt(TimeZone.UTC) + +val LocalDate.millisSinceEpochAtSystemDefaultTimeZone: Long + get() = this.toEpochMillisecondsAt(TimeZone.currentSystemDefault()) val LocalDate.millisSinceEpochAtEuropeBerlin: Long get() = this.toEpochMillisecondsAt(TimeZone.europeBerlin) diff --git a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateTimeExtensions.kt b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateTimeExtensions.kt index dc3d9df0..b0b67b51 100644 --- a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateTimeExtensions.kt +++ b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateTimeExtensions.kt @@ -48,12 +48,12 @@ fun LocalDateTime.Companion.nowAt(timeZone: TimeZone): LocalDateTime { } -val LocalDateTime.millisSinceEpochAtUtc: Long - get() = this.toEpochMillisecondsAt(TimeZone.UTC) - -val LocalDateTime.millisSinceEpochAtSystemDefaultTimeZone: Long - get() = this.toEpochMillisecondsAt(TimeZone.currentSystemDefault()) - +//val LocalDateTime.millisSinceEpochAtUtc: Long +// get() = this.toEpochMillisecondsAt(TimeZone.UTC) +// +//val LocalDateTime.millisSinceEpochAtSystemDefaultTimeZone: Long +// get() = this.toEpochMillisecondsAt(TimeZone.currentSystemDefault()) +// //val LocalDateTime.millisSinceEpochAtEuropeBerlin: Long // get() = this.toEpochMillisecondsAt(TimeZone.europeBerlin)