Closed GoogleCodeExporter closed 8 years ago
This behavior is by-design. The CrontabSchedule method that produces
occurrences is
called GetNextOccurrences. The *next* means not including the start time if the
start
time is on the boundary of the schedule. So, for example, if it is midnight and
you
have the expression * * * * * (meaning every minute) then the next occurrence
of the
schedule will be at one minute past midnight and not midnight itself. In your
example, there are no matches because the start time of 1:10 AM lies on the
schedule
and there is no next occurrence until 1:15 AM. If you want to absolutely make
sure
that the first boundary case is included, then you should minus one minute or
less
from the starting time.
This issue is being closed as WontFix because GetNextOccurrence works as
advertised.
The documentation of the methods, however, has been expanded to explain the
behavior
more precisely with respect to certain input cases.
Original comment by azizatif
on 21 Mar 2010 at 1:21
Original issue reported on code.google.com by
wda...@gmail.com
on 2 Mar 2010 at 10:14