+ int hour = _hour;
+ // Hack to make sure that programs appearing shortly after midnight are sorted
+ // after those running during the day.
+ if ( hour <= EARLY_HOUR ) {
+ hour += HOURS_PER_DAY;
+ }
+ return (float) hour + (float) _minute / (float) SECONDS_PER_MINUTE;