operator + method

OffsetDateTime operator +(
  1. Time time
)

Returns a new OffsetDateTime with the time advanced by the given duration.

The returned value retains the calendar system and offset of this.

Returns: A new value with the time advanced by the given duration, in the same calendar system and with the same offset.

Implementation

OffsetDateTime operator +(Time time) => add(time);