fixed borken example
This commit is contained in:
parent
164843d2d0
commit
662c567db4
|
@ -13,16 +13,16 @@ package cronexpr_test
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gorhill/cronexpr"
|
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/gorhill/cronexpr"
|
||||||
)
|
)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
// ExampleParse
|
// ExampleMustParse
|
||||||
func ExampleParse() {
|
func ExampleMustParse() {
|
||||||
t := time.Date(2013, time.August, 31, 0, 0, 0, 0, time.UTC)
|
t := time.Date(2013, time.August, 31, 0, 0, 0, 0, time.UTC)
|
||||||
nextTimes := cronexpr.MustParse("0 0 29 2 *").NextN(t, 5)
|
nextTimes := cronexpr.MustParse("0 0 29 2 *").NextN(t, 5)
|
||||||
for i := range nextTimes {
|
for i := range nextTimes {
|
||||||
|
|
Loading…
Reference in New Issue