Skip to content

library, that provides a fluent java api for the creation of cron strings

Notifications You must be signed in to change notification settings

sradi/cronbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cronbuilder

library, that provides a fluent java api for the creation of cron strings

simple cron strings

cron strings for periods

If you want something to be executed from a certain point in time, until a later point in time, this can only be expressed by several cron strings.

Examples

This cron definition runs each minute, from June 15th, 3:25pm until November 27th, 9:25pm:

25-59 15    15    6    *
*     16-24 15    6    *
*     *     16-30 6    *
*     *     *     7-10 *
*     *     1-26  11   *
*     1-20  27    11   *
0-25  21    27    11   *

This cron definition can be obtain by calling

Cron.cron().from(25, 15, LocalDate.of(2017, 6, 15)).until(25, 21, LocalDate.of(2017, 11, 27)).get();

About

library, that provides a fluent java api for the creation of cron strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages