withOffset method

OffsetDate withOffset(
  1. Offset offset
)

Returns an OffsetDate for this local date with the given offset.

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

  • offset: The offset to apply.

Returns: The result of this date offset by the given amount.

Implementation

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