I'm making the cron job for monitoring the data. But before this while I'm reading the documentation of the cron in GoDoc in this they say we will run the cron according to the particular time_zone
and intervals. Now I'm using only intervals in the cron job. But, Now I want to use time_zone
too in the cron job means to say cron job will run according to the particular time_zone
on the particular time interval. Suppose I'm in USA and there are different time_zone
and I'm in Chicago
and I want my cron will run every after 2 hours according to the time_zone
of each country. Can we use time_zone
and interval
together? if Yes, Then please tell how can we use it in below function:-
cron.go
package cron
import (
"gopkg.in/robfig/cron.v2"
)
func RunCron() {
c := cron.New()
c.AddFunc("Here I want the time_zone and intervals together", AutomaticChargedCron)
c.Start()
}
I No, Can you tell me that how this will posible to make a cron like that or make a other cron for monitoring the time_zone.