How one can add a month to an Instant? I’m current...
# kotlinx-datetime
l
How one can add a month to an Instant? I’m currently doing something like:
Copy code
myInstant
      .toLocalDateTime(TimeZone.currentSystemDefault())
      .date.plus(DateTimeUnit.DateBased.MonthBased(1)).atStartOfDayIn(TimeZone.currentSystemDefault()),
Edit: Solved, went with
Copy code
.plus(DateTimePeriod(months = 1), TimeZone.currentSystemDefault())
m
Copy code
.plus(1, DateTimeUnit.MONTH)
🙏 1