subtract method

ZonedDateTime subtract(
  1. Time time
)

Returns the result of subtracting a duration from this zoned date and time, for a fluent alternative to -.

  • time: The duration to subtract

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

Implementation

ZonedDateTime subtract(Time time) => ZonedDateTime(toInstant() - time, zone, calendar);