operator - method

OffsetDateTime operator -(
  1. Time time
)

Returns a new OffsetDateTime with the time subtracted.

The returned value retains the calendar system and offset of the _offsetDateTime.

  • offsetDateTime: The value to subtract the duration from.
  • duration: The duration to subtract.

Returns: A new value with the time 'rewound' by the given duration, in the same calendar system and with the same offset.

Implementation

OffsetDateTime operator -(Time time) => subtract(time);