Rivesta Star

DESCRIPTION

Cron implements modern and convenient 5-field format for date and time. The format is cron-like, but uses different, more human readable order.

* * * * *

There are many different formats for date and time, depending on locals. However, one of the most convenient and frequently used in computers is:

2007-04-23 16:10 Fri

Usually year is not needed. So the format is:

<Months> <Days> <Hours> <Minutes> <Days of week>

Each field may consist of single value, list of values, range of values, or list of ranges.

* : stands for any value

USAGE

1. Months - 1-12 or Jan-Dec

Months - single value:
Jan * * * * : in January

Months - list:
Jan,Mar * * * * : in January and in March

Months - range:
Jan-Mar * * * * : from Jan to Mar
1-3 * * * * : from Jan to Mar

Months - list of ranges:
Jan-Mar,May-Jun * * * * : from Jan to Mar, and from May to Jun


2. Days - 1-31

Days - single value:
JAN 3 * * * : on Jan, 3rd

Days - list:
JAN 3,5 * * * : on Jan, 3rd and on Jan, 5th

Days - range:
JAN 3-5 * * * : from Jan, 3rd to Jan, 5th

Days - list of ranges:
JAN 3-5,8-10 * * * : from Jan, 3rd to Jan, 5th and from Jan, 8th to Jan, 10th


3. Hours - 0-23

Hours - single value:
* * 16 10 * : at 16:10h

Hours - list:
* * 16,17 10 * : at 16:10h and at 17:10h

Hours - range:
* * 16-17 10 * : at 16:10h and at 17:10h

Hours - list of ranges
* * 16-17,19-20 10 * : at 16:10h and at 17:10h
and at 19:10h and at 20:10h


4. Minutes - 0-59

Minutes - single value:
* * 16 10 * : at 16:10h

Minutes - list:
* * 16 10,20 * : at 16:10h and at 16:20h

Minutes - range:
* * 21 10-20 * : from 21:10h to 21:20h, each minute

Minutes - list of ranges:
* * 21 10-20,25-30 * : from 21:10h to 21:20h and from 21:25h to 21:30h


5. Days of week - 1-7 or Mon-Sun

Days of week - single value:
* * * * Mon : on Monday

Days of week - list:
: * * * * Mon,Tue : on Monday and on Tuesday

Days of week - range:
* * * * Mon-Fri : from Monday to Friday
* * * * 1-5 : from Monday to Friday

Days of week - list of ranges:
* * * * Mon-Wed, Fri-Sat : from Mon to Wed, and from Fri to Sat


6. Message

The rest of the line is message text.


Additional features:

* * * */5 * : every 5 minutes
* * * */15 * : every 15 minutes