minus method

  1. @useResult
LocalTime minus({
  1. int hours = 0,
  2. int minutes = 0,
  3. int seconds = 0,
  4. int milliseconds = 0,
  5. int microseconds = 0,
})

Returns a copy of this with the time units subtracted, wrapping around midnight.

LocalTime(12).minus(hours: -1, minutes: 1); // 13:01

LocalTime(4).minus(hours: 6); // 22:00

Implementation

@useResult LocalTime minus({int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0}) =>
  LocalTime._(_native.minus(
    hours: hours,
    minutes: minutes,
    seconds: seconds,
    milliseconds: milliseconds,
    microseconds: microseconds,
  ));