File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public expect class Instant : Comparable<Instant> {
128
128
* - `2020-08-30T18:43:00.500Z`
129
129
* - `2020-08-30T18:43:00.123456789Z`
130
130
*
131
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [Instant] are exceeded.
131
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [Instant] are exceeded.
132
132
*/
133
133
fun parse (isoString : String ): Instant
134
134
@@ -168,7 +168,7 @@ public val Instant.isDistantFuture
168
168
*
169
169
* See [Instant.parse] for examples of instant string representations.
170
170
*
171
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [Instant] are exceeded.
171
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [Instant] are exceeded.
172
172
*/
173
173
public fun String.toInstant (): Instant = Instant .parse(this )
174
174
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public expect class LocalDate : Comparable<LocalDate> {
13
13
*
14
14
* An example of a local date in ISO-8601 format: `2020-08-30`.
15
15
*
16
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [LocalDate] are exceeded.
16
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [LocalDate] are exceeded.
17
17
*/
18
18
public fun parse (isoString : String ): LocalDate
19
19
@@ -86,7 +86,7 @@ public expect class LocalDate : Comparable<LocalDate> {
86
86
*
87
87
* See [LocalDate.parse] for examples of local date string representations.
88
88
*
89
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [LocalDate] are exceeded.
89
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [LocalDate] are exceeded.
90
90
*/
91
91
public fun String.toLocalDate (): LocalDate = LocalDate .parse(this )
92
92
@@ -186,7 +186,7 @@ public expect fun LocalDate.daysUntil(other: LocalDate): Int
186
186
public expect fun LocalDate.monthsUntil (other : LocalDate ): Int
187
187
188
188
/* *
189
- * Returns the number of whole years between two instants in the specified [timeZone] .
189
+ * Returns the number of whole years between two dates .
190
190
*
191
191
* If the result does not fit in [Int], returns [Int.MAX_VALUE] for a positive result or [Int.MIN_VALUE] for a negative result.
192
192
*
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public expect class LocalDateTime : Comparable<LocalDateTime> {
20
20
* - `2020-08-30T18:43:00.500`
21
21
* - `2020-08-30T18:43:00.123456789`
22
22
*
23
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [LocalDateTime] are
23
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [LocalDateTime] are
24
24
* exceeded.
25
25
*/
26
26
public fun parse (isoString : String ): LocalDateTime
@@ -113,7 +113,7 @@ public expect class LocalDateTime : Comparable<LocalDateTime> {
113
113
*
114
114
* See [LocalDateTime.parse] for examples of date/time string representations.
115
115
*
116
- * @throws DateTimeFormatException if the text cannot be parsed or the boundaries of [LocalDateTime] are exceeded.
116
+ * @throws IllegalArgumentException if the text cannot be parsed or the boundaries of [LocalDateTime] are exceeded.
117
117
*/
118
118
public fun String.toLocalDateTime (): LocalDateTime = LocalDateTime .parse(this )
119
119
You can’t perform that action at this time.
0 commit comments