SetTimezone changes the current cron tick timezone.
(l *time.Location)
| 60 | |
| 61 | // SetTimezone changes the current cron tick timezone. |
| 62 | func (c *Cron) SetTimezone(l *time.Location) { |
| 63 | c.mux.Lock() |
| 64 | defer c.mux.Unlock() |
| 65 | |
| 66 | c.timezone = l |
| 67 | } |
| 68 | |
| 69 | // MustAdd is similar to Add() but panic on failure. |
| 70 | func (c *Cron) MustAdd(jobId string, cronExpr string, run func()) { |
no outgoing calls