https://github.com/born2snipe/spring-wordy-trigger
Java spring trigger that uses words for expressing scheduling time
https://github.com/born2snipe/spring-wordy-trigger
Last synced: 12 months ago
JSON representation
Java spring trigger that uses words for expressing scheduling time
- Host: GitHub
- URL: https://github.com/born2snipe/spring-wordy-trigger
- Owner: born2snipe
- License: other
- Created: 2012-04-28T13:43:29.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-08-09T17:31:24.000Z (almost 14 years ago)
- Last Synced: 2025-05-15T17:50:55.922Z (about 1 year ago)
- Language: Java
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# What is this? [](http://travis-ci.org/born2snipe/spring-wordy-trigger)
Attempt to simplify setting up a timer trigger using just words.
##Examples
To help you come up with your own wordy expression
for your task, just finish the following sentence:
I want this to run...
**Wordy to Cron comparison**
Wordy Exp. Cron Exp.
================ ==================
every 10 minutes => 0 0/10 * * * ?
every 5 seconds => 0/5 * * * * ?
at 10 pm => 0 0 22 * * ?
at 12:00 am => 0 0 0 * * ?
at 12:00 pm => 0 0 12 * * ?
at 23:43 => 0 43 23 * * ?
between 0-10 every 10 minutes => 0 0/10 0-10 * * ?
between 0 and 10 every 10 minutes => 0 0/10 0-10 * * ?
between 1 am and 10 pm every 5 minutes => 0 0/5 1-22 * * ?
between 1-10 pm every 2 hours => 0 0 13-10/2 * * ?
every 2 hours between 1-10 pm => 0 0 13-10/2 * * ?
on MON-FRI every 10 minutes => 0 0/10 * ? * MON-FRI
every 10 minutes on MON-FRI => 0 0/10 * ? * MON-FRI
on MON thru FRI every 10 minutes => 0 0/10 * ? * MON-FRI
on SUN,TUE,THU,FRI every 10 minutes => 0 0/10 * ? * SUN,TUE,THU,FRI
at 10 pm on MON-FRI => 0 0 22 * ? * MON-FRI
on WED at 23:00 => 0 0 23 * ? * WED
on MON-FRI between 12 am and 10 pm every 10 minutes => 0 0/10 0-22 ? * MON-FRI
Available units for the "every" syntax:
second
minute
hour
Available hour ranges for "between" syntax:
Military time: 0-23|0 and 23
Time of day: 1-10 pm|1 am and 10 pm
Available days for "on" syntax:
SUN, MON, TUE, WED, THU, FRI, SAT
##Maven
b2s
wordy
${version}
b2s
spring-wordy-trigger
${version}
b2s-repo
http://b2s-repo.googlecode.com/svn/trunk/mvn-repo
##[Spring Usage](http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/scheduling.html)