Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Created November 19, 2022 19:08
Show Gist options
  • Save spac3unit/8cc9719027f4b0ce003e8a0776f40a7b to your computer and use it in GitHub Desktop.
Save spac3unit/8cc9719027f4b0ce003e8a0776f40a7b to your computer and use it in GitHub Desktop.

Revisions

  1. spac3unit created this gist Nov 19, 2022.
    17 changes: 17 additions & 0 deletions cron.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    export const Every = {
    second: "* * * * * *",
    minute: "* * * * *",
    minutes15: "*/15 * * * *",
    halfHour: "*/30 * * * *",
    hour: "0 * * * *",
    twelveHours: "0 */12 * * *",
    day: "0 0 * * *", //At 00:00
    weekDay: "0 0 * * 1-5", //Monday to Friday.
    weekend: "0 0 * * 6,0", //Saturday and Sunday
    week: "0 0 * * 0",
    month: "0 0 1 * *",
    otherMonth: "0 0 1 */2 *",
    quarter: "0 0 1 */3 *",
    sixMonth: "0 0 1 */6 *",
    year: "0 0 1 1 *"
    }