i need to run a cron at 1:00 PM UTC every day, is this the right crontab for UTC ?
0 1 * * *
否,应采用24小时格式,因此
0 13 * * *
The timezone within which cron jobs are scheduled by default, is based upon the default system timezone (/etc/timezone). Depending upon your distribution, you may be able to set CRON_TZ
in your crontab.
If your system default timezone is UTC then 0 1 * * *
is correct.
You can add a job like the following to your crontab to determine which timezone cron is using:
0 * * * * date > /tmp/date.out
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.