minus static method

LocalTime minus(
  1. LocalTime time,
  2. Period period
)

Subtracts the specified period from the time. Friendly alternative to operator-().

  • time: The time to subtract the period from
  • period: The period to subtract. Must not contain any (non-zero) date units.

Returns: The result of subtracting the given period from the time.

Implementation

static LocalTime minus(LocalTime time, Period period) => time.subtract(period);