File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -577,6 +577,10 @@ public fun Duration.toDateTimePeriod(): DateTimePeriod = buildDateTimePeriod(tot
577
577
*
578
578
* @throws DateTimeArithmeticException if arithmetic overflow happens.
579
579
*/
580
+ @Deprecated(
581
+ " Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381" ,
582
+ level = DeprecationLevel .ERROR
583
+ )
580
584
public operator fun DateTimePeriod.plus (other : DateTimePeriod ): DateTimePeriod = buildDateTimePeriod(
581
585
safeAdd(totalMonths, other.totalMonths),
582
586
safeAdd(days, other.days),
@@ -591,6 +595,10 @@ public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod =
591
595
*
592
596
* @throws DateTimeArithmeticException if arithmetic overflow happens.
593
597
*/
598
+ @Deprecated(
599
+ " Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381" ,
600
+ level = DeprecationLevel .ERROR
601
+ )
594
602
public operator fun DatePeriod.plus (other : DatePeriod ): DatePeriod = DatePeriod (
595
603
safeAdd(totalMonths, other.totalMonths),
596
604
safeAdd(days, other.days),
You can’t perform that action at this time.
0 commit comments