withOffset method

OffsetTime withOffset(
  1. Offset offset
)

Returns an OffsetTime for this time-of-day with the given offset.

This method is purely a convenient alternative to calling the OffsetTime constructor directly.

  • offset: The offset to apply.

Returns: The result of this time-of-day offset by the given amount.

Implementation

OffsetTime withOffset(Offset offset) => OffsetTime(this, offset);