How to use time function?

simplest is to use minutes of the day

      minuteNow = hour * 60 + minute;
      if (minuteNow >= (21 * 60 + 30)) ...