diff --git a/core/common/src/LocalDate.kt b/core/common/src/LocalDate.kt index 596970b2..4ecfe764 100644 --- a/core/common/src/LocalDate.kt +++ b/core/common/src/LocalDate.kt @@ -315,7 +315,7 @@ public fun String.toLocalDate(): LocalDate = LocalDate.parse(this) * @sample kotlinx.datetime.test.samples.LocalDateSamples.atTimeInline */ public fun LocalDate.atTime(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0): LocalDateTime = - LocalDateTime(year, month.number, day, hour, minute, second, nanosecond) + LocalDateTime(year, month, day, hour, minute, second, nanosecond) /** * Combines this date's components with the specified [LocalTime] components into a [LocalDateTime] value. diff --git a/core/common/src/format/DateTimeComponents.kt b/core/common/src/format/DateTimeComponents.kt index 238da8f1..b3db17c0 100644 --- a/core/common/src/format/DateTimeComponents.kt +++ b/core/common/src/format/DateTimeComponents.kt @@ -297,7 +297,7 @@ public class DateTimeComponents internal constructor(internal val contents: Date public var day: Int? by TwoDigitNumber(contents.date::day) /** @suppress */ - @Deprecated("Use 'day' instead", ReplaceWith("day")) + @Deprecated("Use 'day' instead") public var dayOfMonth: Int? by TwoDigitNumber(contents.date::day) /** diff --git a/core/commonJs/src/LocalDate.kt b/core/commonJs/src/LocalDate.kt index 6fd51712..1c34205e 100644 --- a/core/commonJs/src/LocalDate.kt +++ b/core/commonJs/src/LocalDate.kt @@ -69,7 +69,7 @@ public actual class LocalDate internal constructor(internal val value: jtLocalDa @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = value.monthValue() public actual val month: Month get() = value.month().toMonth() - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = value.dayOfMonth() public actual val day: Int get() = value.dayOfMonth() public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek().toDayOfWeek() diff --git a/core/commonJs/src/LocalDateTime.kt b/core/commonJs/src/LocalDateTime.kt index ab098b2f..2580d953 100644 --- a/core/commonJs/src/LocalDateTime.kt +++ b/core/commonJs/src/LocalDateTime.kt @@ -33,7 +33,7 @@ public actual class LocalDateTime internal constructor(internal val value: jtLoc @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = value.monthValue() public actual val month: Month get() = value.month().toMonth() - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = value.dayOfMonth() public actual val day: Int get() = value.dayOfMonth() public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek().toDayOfWeek() diff --git a/core/commonKotlin/src/LocalDate.kt b/core/commonKotlin/src/LocalDate.kt index 1507cbf4..37e0feb4 100644 --- a/core/commonKotlin/src/LocalDate.kt +++ b/core/commonKotlin/src/LocalDate.kt @@ -28,7 +28,7 @@ public actual class LocalDate actual constructor(public actual val year: Int, mo private val _month: Int = month @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = _month - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = day init { diff --git a/core/commonKotlin/src/LocalDateTime.kt b/core/commonKotlin/src/LocalDateTime.kt index d878c7e1..eff5793b 100644 --- a/core/commonKotlin/src/LocalDateTime.kt +++ b/core/commonKotlin/src/LocalDateTime.kt @@ -45,7 +45,7 @@ public actual constructor(public actual val date: LocalDate, public actual val t @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = date.month.number public actual val month: Month get() = date.month - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = date.day public actual val day: Int get() = date.day public actual val dayOfWeek: DayOfWeek get() = date.dayOfWeek diff --git a/core/jvm/src/LocalDate.kt b/core/jvm/src/LocalDate.kt index 067faebc..f084844a 100644 --- a/core/jvm/src/LocalDate.kt +++ b/core/jvm/src/LocalDate.kt @@ -64,7 +64,7 @@ public actual class LocalDate internal constructor(internal val value: jtLocalDa @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = value.monthValue public actual val month: Month get() = value.month - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = value.dayOfMonth public actual val day: Int get() = value.dayOfMonth public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek diff --git a/core/jvm/src/LocalDateTime.kt b/core/jvm/src/LocalDateTime.kt index 89df0eb8..a8419836 100644 --- a/core/jvm/src/LocalDateTime.kt +++ b/core/jvm/src/LocalDateTime.kt @@ -36,7 +36,7 @@ public actual class LocalDateTime internal constructor(internal val value: jtLoc @Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING) public actual val monthNumber: Int get() = value.monthValue public actual val month: Month get() = value.month - @Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING) + @Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING) public actual val dayOfMonth: Int get() = value.dayOfMonth public actual val day: Int get() = value.dayOfMonth public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek