Page 1 of 1

Time periods

Posted: Mon Jun 10, 2019 4:07 am
by letsgetthisdone
Hi ,
I have a service which needs to be checked every day, every hour between XX:15 and XX:45.

Can somebody please guide me on how to create such time period?

I have used time periods before, but cannot figure how to build this one. :cry:

Thanks :)

Re: Time periods

Posted: Mon Jun 10, 2019 9:59 am
by scottwilkerson
Without typing them all out, it would start like this:

Code: Select all

define timeperiod{
	timeperiod_name		periodname
	sunday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	monday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	tuesday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	wednesday		00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	thursday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	friday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	saturday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	}