/cron-parser

Java Parser For Cron Expressions

Primary LanguageJava

cron-parser

Build Status Stories in Ready Bitdeli Badge

A Java library that converts cron expressions into human readable strings. Translated to Java from https://github.com/bradyholt/cron-expression-descriptor.

Original Author & Credit: Brady Holt (http://www.geekytidbits.com) License: MIT

Features

  • Supports all cron expression special characters including * / , - ? L W, #.
  • Supports 5, 6 (w/ seconds or year), or 7 (w/ seconds and year) part cron expressions.
  • Provides casing options (Sentence, Title, Lower, etc.).
  • Support for non-standard non-zero-based week day numbers.
  • Supports printing to locale specific human readable format (Italian, English, Spanish and Dutch so far...).

Download

cron-parser is available in the maven central repository, please select the latest version from there.

Usage Examples (Unit Tests)

See src/test/java/com/gr/cronparser/CronExpressionDescriptorTest.java