subtract method

OffsetDateTime subtract(
  1. Time time
)

Returns the result of subtracting a duration from this offset date and time.

  • time: The duration to subtract

Returns: A new OffsetDateTime representing the result of the subtraction.

Implementation

OffsetDateTime subtract(Time time) => OffsetDateTime._fromInstant(toInstant() - time, offset);