Compare commits
1 Commits
7e11bcdceb
...
768da5b790
Author | SHA1 | Date |
---|---|---|
|
768da5b790 |
|
@ -126,10 +126,10 @@ pub fn (ce &CronExpression) next_from_now() ?time.Time {
|
|||
pub fn (ce &CronExpression) next_n(ref time.Time, n int) ?[]time.Time {
|
||||
mut times := []time.Time{cap: n}
|
||||
|
||||
times << ce.next(ref) ?
|
||||
times << ce.next(ref)?
|
||||
|
||||
for i in 1..n {
|
||||
times << ce.next(times[i - 1]) ?
|
||||
for i in 1 .. n {
|
||||
times << ce.next(times[i - 1])?
|
||||
}
|
||||
|
||||
return times
|
||||
|
|
Loading…
Reference in New Issue