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 org.oddjob.schedules.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
from The from date/time. No.
to The to date/time. 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.

 <time from="10:00" to="14:00"/>
 

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

 <time from="22:00" to="04:00" >
   <interval interval="00:15" />
 </time>
 


(c) Rob Gordon 2005