You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you like to be added:
I hope the author can add the Last (time. Time) time.Time method to the schedule interface,return the last activation time, earlierthan the given time.
You can even extend Last (time. Time, Num int) time. Time and Next (time. Time, Num int) time. Time methods. Num represents the last num times.
What would you like to be added:
I hope the author can add the Last (time. Time) time.Time method to the schedule interface,return the last activation time, earlierthan the given time.
You can even extend Last (time. Time, Num int) time. Time and Next (time. Time, Num int) time. Time methods. Num represents the last num times.
example:
schedule, _ = cron.Parse("0 0 0/1 * * ?")
now := time.Now()
schedule.Next(now)
schedule.Last(now)
schedule.Next(now,2)
schedule.Last(now,3)
The text was updated successfully, but these errors were encountered: