difference static method

Period difference(
  1. LocalTime end,
  2. LocalTime start
)

Subtracts the specified time from this time, returning the result as a Period. Fluent alternative to operator-().

  • time: The time to subtract from this

Returns: The difference between the specified time and this one

Implementation

static Period difference(LocalTime end, LocalTime start) => Period.differenceBetweenTimes(start, end);