check if time out of hours

--business hours in this example 8am-5pm:
var gdt=gs.nowDateTime();
var gdtArr= gdt.split(' ');
var timeArr=gdtArr[1].split(':');
//vat currenttime=parseInt(timeArr[0]);

if (timeArr[0]>=17 || timeArr[0]<8){

   gs.print('out of hours');


Popular posts from this blog

GlideRecord setValue

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy