differenceInMinutes method

int differenceInMinutes(
  1. SphTimeOfDay other
)

Minutes from this time until other (can be negative).

Implementation

int differenceInMinutes(SphTimeOfDay other) {
  return (other.hour - hour) * 60 + other.minute - minute;
}