minusSeconds method

LocalTime minusSeconds(
  1. int seconds
)

Returns a new LocalTime with the given duration subtracted.

If the result is negative, it wraps backward from the end of the day.

Example

final t = LocalTime(0, 15);
final prev = t.minus(Duration(minutes: 30)); // 23:45 of previous cycle

Implementation

LocalTime minusSeconds(int seconds) => minus(Duration(seconds: seconds));