changes as per #5

This commit is contained in:
gorhill
2013-09-02 09:25:49 -04:00
parent 4f0ef12848
commit 5442b2bfef
4 changed files with 43 additions and 19 deletions

View File

@@ -24,7 +24,7 @@ import (
// ExampleParse
func ExampleParse() {
t := time.Date(2013, time.August, 31, 0, 0, 0, 0, time.UTC)
nextTimes := cronexpr.Parse("0 0 29 2 *").NextN(t, 5)
nextTimes := cronexpr.MustParse("0 0 29 2 *").NextN(t, 5)
for i := range nextTimes {
fmt.Println(nextTimes[i].Format(time.RFC1123))
// Output: