MCPcopy Create free account
hub / github.com/codnect/chrono / next

Method next

cron.go:114–124  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

112}
113
114func (expression *CronExpression) next(t time.Time) time.Time {
115 for _, field := range expression.fields {
116 t = expression.nextField(field, t)
117
118 if t.IsZero() {
119 return t
120 }
121 }
122
123 return t
124}
125
126func (expression *CronExpression) nextField(field *cronFieldBits, t time.Time) time.Time {
127 current := getTimeValue(t, field.Typ.Field)

Callers 1

NextTimeMethod · 0.95

Calls 1

nextFieldMethod · 0.95

Tested by

no test coverage detected