plus

actual fun Instant.plus(period: DateTimePeriod, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Long, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Int, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual operator fun LocalDate.plus(period: DatePeriod): LocalDate(source)

Adds two DateTimePeriod instances.

Throws

if arithmetic overflow happens.


operator fun DatePeriod.plus(other: DatePeriod): DatePeriod(source)

Adds two DatePeriod instances.

Throws

if arithmetic overflow happens.


Returns an instant that is the result of adding the value number of the specified unit to this instant.

If the value is positive, the returned instant is later than this instant. If the value is negative, the returned instant is earlier than this instant.

The return value is clamped to the platform-specific boundaries for Instant if the result exceeds them.


expect fun Instant.plus(period: DateTimePeriod, timeZone: TimeZone): Instant(source)

Returns an instant that is the result of adding components of DateTimePeriod to this instant. The components are added in the order from the largest units to the smallest, i.e. from years to nanoseconds.

Throws

if this value or the results of intermediate computations are too large to fit in LocalDateTime.


expect fun Instant.plus(value: Long, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
expect fun Instant.plus(value: Int, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)

Returns an instant that is the result of adding the value number of the specified unit to this instant in the specified timeZone.

If the value is positive, the returned instant is later than this instant. If the value is negative, the returned instant is earlier than this instant.

Throws

if this value or the result is too large to fit in LocalDateTime.


Returns a LocalDate that is the result of adding the value number of the specified unit to this date.

If the value is positive, the returned date is later than this date. If the value is negative, the returned date is earlier than this date.

Throws

if the result exceeds the boundaries of LocalDate.


expect operator fun LocalDate.plus(period: DatePeriod): LocalDate(source)

Returns a date that is the result of adding components of DatePeriod to this date. The components are added in the order from the largest units to the smallest, i.e. from years to days.

See also

Throws

if this value or the results of intermediate computations are too large to fit in LocalDate.

actual fun Instant.plus(period: DateTimePeriod, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Long, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Int, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual operator fun LocalDate.plus(period: DatePeriod): LocalDate(source)
actual fun Instant.plus(period: DateTimePeriod, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Long, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual fun Instant.plus(value: Int, unit: DateTimeUnit, timeZone: TimeZone): Instant(source)
actual operator fun LocalDate.plus(period: DatePeriod): LocalDate(source)