The core of the problem is that I am incorrectly storing bank holiday start points in epoch seconds based on UTC0. Of course they actualy start at localtime == 00:00:00. I think I need to revise the code to store bank hols as (YYYY-1900):MM:DD, then compare to the appropriate fields of locatime($epoch).
original node updated with fixed code.
Cheers,
R.
In reply to Re^4: efficient determination of in/out of hours
by Random_Walk
in thread efficient determination of in/out of hours including Bank Holidays
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |