[Time][SOLVED] How to compare hours ?

    if ((hour() > 22 && hour() <10)) {

The hour is not going to be greater than 22 AND less than 10 at the same time. Do you mean "or"?