Working Hours
You may want to disable some scripts or use another Script Set...
Last updated
You may want to disable some scripts or use another Script Set...
Last updated
Here's a very simple way to determine if you are running a script within operating hours:
The way this works is to find if today is a holiday (the database table is syHolidays
) and the WHERE clause LOOKS FOR an entry for today, in ENgland (other standard values supplied are NI and SCO).
It also checks for weekend (Saturday=7 and Sunday=1) and finally if the time is in working hours. It adds all three resultant boolean values and the Expression will be True if the value returned is greater than zero, meaning we are operating outside of normal hours.