What about

Code:
If lightsetHR[fn] >= timeH and lightsetMN[fn] >= timeM then
Or am I missing something??