Originally Posted By: Sphin
Grmpf ... apperently I need some C-tutoring again. To determine the right day I'm using

Code:
if ((dow() == 5 && hour() == 0) || (dow() == 4 && hour() == 23)) {



The sense is "if either dow is 5 and hour is 0 or if dow is 4 and hour is 23". Is the setting of the brackets logically okay? I read that there are differences in using comparisms in C compared to other program languages, so I'm not quite sure.


The brackets are fine as far as I see. Another way to check the time interval around thursday midnight is:

if(between(tow(),42359,50001)) ...