PHP - Cron作业在特定日期和时间运行

Har*_*are 7 php cron crontab

如何使用cron表达式识别cron作业将在特定的日期和时间运行

Eer*_*nie 13

*     *     *   *    *        command to be executed
-     -     -   -    -
|     |     |   |    |
|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
|     |     |   +------- month (1 - 12)
|     |     +--------- day of        month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
Run Code Online (Sandbox Code Playgroud)

替换为*您需要的值.


Man*_*ahu 9

cron作业参数的结构

Minutes [0-59]
    |   Hours [0-23]
    |   |   Days [1-31]
    |   |   |   Months [1-12]
    |   |   |   |   Days of the Week [Numeric, 0-6]
    |   |   |   |   |
    *   *   *   *   * home/path/to/command/the_command.sh
Run Code Online (Sandbox Code Playgroud)