now returns current time in c location
()
| 315 | |
| 316 | // now returns current time in c location |
| 317 | func (c *Cron) now() time.Time { |
| 318 | return time.Now().In(c.location) |
| 319 | } |
| 320 | |
| 321 | // Stop stops the cron scheduler if it is running; otherwise it does nothing. |
| 322 | // A context is returned so the caller can wait for running jobs to complete. |