operator - method

ZonedDateTime operator -(
  1. Time time
)

Returns a new ZonedDateTime with the duration subtracted. Note that due to daylight saving time changes this may not change the local time by the same amount.

The returned value retains the calendar system and time zone of zonedDateTime. This is equivalent to subtract.

  • zonedDateTime: The value to subtract the duration from.
  • time: The duration to subtract.

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

Implementation

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