Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrozanec committed Feb 14, 2015
1 parent 983e0b2 commit fb0baff
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@ cron-utils is available on Maven central repository.
//Time to next execution
Duration timeToNextExecution = executionTime.timeToNextExecution(now);

***Map constants between libraries***

//Map day of week value from Quartz to JodaTime
int jodatimeDayOfWeek =
ConstantsMapper.weekDayMapping(
ConstantsMapper.QUARTZ_WEEK_DAY,
ConstantsMapper.JODATIME_WEEK_DAY
);

***Date and time formatting for humans!***

//You no longer need to remember "YYYY-MM-dd KK a" patterns.
Expand All @@ -138,6 +129,15 @@ cron-utils is available on Maven central repository.
String formattedDateTime = formatter.print(lastExecution);
//formattedDateTime will be lastExecution in "dayOfWeek, Month day, Year" format

***Map constants between libraries***

//Map day of week value from Quartz to JodaTime
int jodatimeDayOfWeek =
ConstantsMapper.weekDayMapping(
ConstantsMapper.QUARTZ_WEEK_DAY,
ConstantsMapper.JODATIME_WEEK_DAY
);


**Contribute!**

Expand Down

0 comments on commit fb0baff

Please sign in to comment.