operator + method
Returns a new OffsetDateTime with the time advanced by the given duration.
The returned value retains the calendar system and offset of this.
- this: The OffsetDateTime to add the duration to.
time
: The duration to add.
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);