plus static method

OffsetDateTime plus(
  1. OffsetDateTime offsetDateTime,
  2. Time time
)

Adds a duration to an offset date and time.

  • offsetDateTime: The value 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

static OffsetDateTime plus(OffsetDateTime offsetDateTime, Time time) => offsetDateTime + time;