cron
cron copied to clipboard
a cron library for go
Virus Trojan:Sabsik 
code at [here](https://github.com/robfig/cron/blob/master/cron.go#L264) ``` func (c *Cron) run() { c.logger.Info("start") // Figure out the next activation times for each entry. now := c.now() for _, entry := range c.entries {...
I want to run cronjob at epoc time with millisecond and work every second. But I couldn't find it. The cron starts at 000 millisecond. I need it starts at...
#### code for { // Determine the next entry to run. sort.Sort(byTime(c.entries)) .... } #### problem method sort.Sort will be called every time in the for loop. #### proposal use...
Add a special character 'L' in the day-of-month field, which specifies the last day of the month e.g: '0 0 18 L * ?' denotes the following: At 6:00:00PM, on...
illustrate: I know that cron.New() doesn't support seconds, but cron.New(cron.WithSeconds()) does. question: What I'm curious about is what are the pros and cons between the two? Is there a difference...
The scheduled task is 0/11 * * *? After it is executed at 13:55, the next execution time is 14:00, not 14:06. The correct next execution time should be 14:06,...
can cron get current running jobs or whether any job is running or not
When trying to get the next time that matches a schedule I've encountered some unexpected behaviour. Using a time that is close to a matching time returns the wrong next...
This PR adds a `WithClock()` option, which uses [mixer/clock](https://github.com/mixer/clock) to simulate the passage of time. Tests can be written to, for example, [verify the behavior of a given schedule](https://github.com/tooolbox/cron/blob/0ef26ab6babdcb0da403d1d4da95fdb371ec6f66/cron_test.go#L676). This...