Check if time is between two time inputs.

Thanks for the help, I tried implementing what you said PaulMurrayCbr. But I didnt get it to work.

Also about the idea of adding an arbitary date, I dont see how that will work either without some logic checking wether its before midnight or after. Since if its before you dont want to add an extra day.

Anyway, I believe its working 100% the way I did it now.

void writeLeds() {
  hourandminute = hour() + (minute() / 60.);
  if (inputStop > inputStart) { // Time does not cross midnight
    if (hourandminute >= inputStart && hourandminute <= inputStop) {
      for(int i=0;i<NUM_LEDS;i++){
        leds[i] = CHSV( hueDay, satDay, briDay);
      }
      FastLED.show();
    }
    else {
      for(int i=0;i<NUM_LEDS;i++){
      leds[i] = CHSV( hueNight, satNight, briNight);
      FastLED.show();
     }
    }
  }
  if (inputStop < inputStart) { // Time cross midnight
    if (hourandminute >= inputStart && hourandminute >= inputStop) {
      for(int i=0;i<NUM_LEDS;i++){
        leds[i] = CHSV( hueDay, satDay, briDay);
      }
      FastLED.show();
    }
    else if (hourandminute <= inputStart && hourandminute < inputStop) {
      for(int i=0;i<NUM_LEDS;i++){
        leds[i] = CHSV( hueDay, satDay, briDay);
      }
      FastLED.show();
    }
    else {
      for(int i=0;i<NUM_LEDS;i++){
      leds[i] = CHSV( hueNight, satNight, briNight);
      FastLED.show();
    }
  }
 }
}