Hi
I'd like to share very handy function to check if time is between two other times. This is very useful for example for checking if motion sensor should at this time of day switch warm or cool lights. There are two functions
IsTimeBetween(StartH, StartM, StopH, StopM, TestH, TestM) - which checks if TestH:TestM is between StartH:StartM and StopH:StopM
IsItBetween(StartH,StartM,StopH,StopM) - this one is a wrapper to check against current time of day.