'Prime Time' calculator
- Posted by Pete <pete_stoner at btconnect.com> Oct 25, 2004
- 677 views
Hi All, As an addition to an existing program I need to come up with a function to tell me if the current day/time is in working hours (Prime Time), using time() it's easy for < 9.00 or > 17.30 and a Saturday or Sunday, however it is slightly more tricky if it is a public holiday. Fixed days like Christmas shouldn't be too bad (remembering to allow if it falls on a weekend it shifts to a weekday) but 'movable' dates like Easter are another story..