mirror of
https://github.com/frode-carlsen/cron.git
synced 2025-12-06 05:50:54 +03:00
59d3f1134c3f1c61be3e02887f8453207197ce9e
Searching for next time from least significant to most significant field can be very expensive if the next time stamp is significantly in the future. Instead match from most significant field down to least restarting the search if a match is not found for the current field.
cron
Cron expression parser and evaluator.
Allows for specifying cron - expressions (in Unix or Quartz like format) and evaluating when it will next match.
Modules
- cron-jodatime: Based on jodatime. Supports java6
- cron-java8: Based on java8/time. Requires java8+
Usage
See javadoc
Change history and credits
version 1.4:
- 2017-02-13: added support for java6 (supports android 4) by @adelnizamutdinov
- 2016-09-11: rewritten to Java 8 DateTime by @zemiak
version 1.3:
- 2015-09-23: added timezone to tests by @alf
version 1.2:
- 2015-08-05: added protection for endless loop when looking up Feb 30th & optional seconds by @michaelknigge
Description
Cron expression parser and evaluator. One version based on Joda-time, other on Java Time
Languages
Java
100%