diff --git a/README.md b/README.md index 0d23b1b..ffb3917 100644 --- a/README.md +++ b/README.md @@ -91,5 +91,7 @@ to create a `CronExpression` object once and keep a copy of it for reuse: cronexpr := cronexpression.NewCronExpression("0 0 29 2 *") nextTime := cronexpr.NextTime(time.Now()) + +`Use cronexpression.NoMatch(nextTime)` to find out whether a valid time was returned. For exemple, `cronexpression.NoMatch(cronexpression.NextTimeFromCronString("* * * * * 1980", time.Now()))` will return `true`, whereas `cronexpression.NoMatch(cronexpression.NextTimeFromCronString("* * * * * 2050", time.Now()))` will return false (as of 2013-08-29...)