withOffset method

OffsetDate withOffset(
  1. Offset offset
)

Creates a new OffsetDate for the same date, but with the specified UTC offset.

  • offset: The new UTC offset.

Returns: A new OffsetDate for the same date, but with the specified UTC offset.

Implementation

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