difference static method
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);