File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ public actual class Instant internal constructor(internal val value: jtInstant)
82
82
}
83
83
}
84
84
85
+ @Deprecated(" This overload is only kept for binary compatibility" , level = DeprecationLevel .HIDDEN )
86
+ public fun parse (isoString : String ): Instant = parse(input = isoString)
87
+
85
88
/* * A workaround for a quirk of the JDKs older than 11 where the string representations of Instant that have an
86
89
* offset of the form "+XX" are not recognized by [jtOffsetDateTime.parse], while "+XX:XX" work fine. */
87
90
private fun fixOffsetRepresentation (isoString : CharSequence ): CharSequence {
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ public actual class LocalDate internal constructor(internal val value: jtLocalDa
30
30
format.parse(input)
31
31
}
32
32
33
+ @Deprecated(" This overload is only kept for binary compatibility" , level = DeprecationLevel .HIDDEN )
34
+ public fun parse (isoString : String ): LocalDate = parse(input = isoString)
35
+
33
36
internal actual val MIN : LocalDate = LocalDate (jtLocalDate.MIN )
34
37
internal actual val MAX : LocalDate = LocalDate (jtLocalDate.MAX )
35
38
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ public actual class LocalDateTime internal constructor(internal val value: jtLoc
68
68
format.parse(input)
69
69
}
70
70
71
+ @Deprecated(" This overload is only kept for binary compatibility" , level = DeprecationLevel .HIDDEN )
72
+ public fun parse (isoString : String ): LocalDateTime = parse(input = isoString)
73
+
71
74
internal actual val MIN : LocalDateTime = LocalDateTime (jtLocalDateTime.MIN )
72
75
internal actual val MAX : LocalDateTime = LocalDateTime (jtLocalDateTime.MAX )
73
76
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ public actual class LocalTime internal constructor(internal val value: jtLocalTi
56
56
format.parse(input)
57
57
}
58
58
59
+ @Deprecated(" This overload is only kept for binary compatibility" , level = DeprecationLevel .HIDDEN )
60
+ public fun parse (isoString : String ): LocalTime = parse(input = isoString)
61
+
59
62
public actual fun fromSecondOfDay (secondOfDay : Int ): LocalTime = try {
60
63
jtLocalTime.ofSecondOfDay(secondOfDay.toLong()).let (::LocalTime )
61
64
} catch (e: DateTimeException ) {
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ public actual class UtcOffset(internal val zoneOffset: ZoneOffset) {
31
31
else -> format.parse(input)
32
32
}
33
33
34
+ @Deprecated(" This overload is only kept for binary compatibility" , level = DeprecationLevel .HIDDEN )
35
+ public fun parse (offsetString : String ): UtcOffset = parse(input = offsetString)
36
+
34
37
@Suppress(" FunctionName" )
35
38
public actual fun Format (block : DateTimeFormatBuilder .WithUtcOffset .() -> Unit ): DateTimeFormat <UtcOffset > =
36
39
UtcOffsetFormat .build(block)
You can’t perform that action at this time.
0 commit comments