- or download this
<!--MyExample_1 will not perform any action between 1st January 2006 1
+2 noon and 2nd March 2006 12 noon-->
<resource name="MYEXAMPLE_1" start="01-01-2006 12:00" end="02-03-2006
+12:00"></resource>
...
<resource name="MYEXAMPLE_2" start="every 19:00" end="every 21:00"></r
+esource>
<!--MyExample_3 will never perform ANY actions -->
<resource name="MYEXAMPLE_3" start="" end=""></resource>
- or download this
#---------------------------------------------------------------------
+------------------
# Convert supplied date to Epoch time
...
return($epoch);
}
- or download this
<!--MyExample_2 will not perform any actions between 7 PM and 9 PM eve
+ry Monday.-->
<resource name="MYEXAMPLE_2" start="mon 19:00" end="mon 21:00"></resou
+rce>
- or download this
my $configuredDayFromXML = "mon"; #obtain from configuration
my @daysOfWeek = ('Sun', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun');
...
perform action;
}
}