Hi Faisal, thank you for your example. I had some extra time to spare and with an example in the TrafficScript reference guide I came up with this: # $hourofday: maintenance hours are between 10pm and 12pm $hourofday = sys.time.hour ( ) ; # $datestring is printed as a string like YYYYmmdd $datestring = sys.localtime.format ( "%Y%m%d" ) ; # To cast a string to an integer, perform an evaluation $today = $datestring + 0 ; # Fixed set of days in a year for maintenance, supplied as integer $maintenance_days = [ 20130103 , 20130110 , 20130117, "and so on" ] ; $begin = 22 ; $end = 24 ; if ( array.contains ( $maintenance_days , $today ) ) { if ( ! ( $hourofday < $begin || $hourofday >= $end ) ) { pool.use ( "POOL-Sorry" ) ; } } The begin and end time are always the same, as is agreed with the business. The maintenance days are always predefined each year, so it's basically a "set and forget for a year". This script worked fine last night. It's another example, but with the same result. Thanks, Dennis
... View more