fleshing out
This commit is contained in:
parent
867274cf67
commit
82e0763e2c
|
@ -92,7 +92,7 @@ to create a `CronExpression` object once and keep a copy of it for reuse:
|
||||||
cronexpr := cronexpression.NewCronExpression("0 0 29 2 *")
|
cronexpr := cronexpression.NewCronExpression("0 0 29 2 *")
|
||||||
nextTime := cronexpr.NextTime(time.Now())
|
nextTime := cronexpr.NextTime(time.Now())
|
||||||
|
|
||||||
`Use cronexpression.NoMatch(nextTime)` to find out whether a valid time was returned. For exemple,
|
Use `cronexpression.NoMatch()` to find out whether a valid time was returned. For exemple,
|
||||||
|
|
||||||
cronexpression.NoMatch(cronexpression.NextTimeFromCronString("* * * * * 1980", time.Now()))
|
cronexpression.NoMatch(cronexpression.NextTimeFromCronString("* * * * * 1980", time.Now()))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue