timeOfDayToDouble function

double timeOfDayToDouble(
  1. TimeOfDay myTime
)

Convert TimeOfDay to double for comparison

Implementation

double timeOfDayToDouble(TimeOfDay myTime) =>
    myTime.hour + myTime.minute / 60.0;