Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Nov 14, 2024
1 parent f1c1fae commit d9fcdb9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/common/src/LocalDate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion core/common/src/format/DateTimeComponents.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/**
Expand Down
2 changes: 1 addition & 1 deletion core/commonJs/src/LocalDate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion core/commonJs/src/LocalDateTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion core/commonKotlin/src/LocalDate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion core/commonKotlin/src/LocalDateTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/LocalDate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/LocalDateTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9fcdb9

Please sign in to comment.