schedules:time

Description

A schedule for the times of the day. This schedule enables job to be schedule at a paticular time or a from/to time which could be used to constrain a sub schedule.

Please note the property 'on' is used instead of at, this is due to a lazy developer sharing logic with other constrained schedules such as schedules:dayofyear.

If the 'to' time is less than the 'from' time it is assumed that the 'to' time is the next day.

Properties

NameDescriptionRequired
refinement Provide a refinement to this schedule. No.
on The on date/time. This has the same effect as setting from and to to the same thing. No.
from The from time. No. Default to the start of the day.
to The to time. No. Default to the end of the day.

Example

A simple example.

 <schedules:time xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"
          from="10:00" to="14:00"/>
 

Using time to schedule an interval between 10pm and 4am the next day.

 <schedules:time xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"
        from="22:00" to="04:00" >
  <refinement>
   <schedules:interval interval="00:15" />
  </refinement>
 </shedules:time>
 


(c) Rob Gordon 2005 - 2009