【问题标题】:How to fire every 2 day of the month? [closed]如何每月每两天开火一次? [关闭]
【发布时间】:2019-08-27 14:07:19
【问题描述】:

我在我的 node.js 后端使用 later.js,我想在每个月的第二天启动一个函数。我该如何解析这个(如果有人知道 cron 语法也会有帮助)

【问题讨论】:

  • 当你尝试学习cron语法时,你遇到了什么问题?你检查过later.js documentation吗?你有什么尝试吗?它实际上是later.parse.text('on the 2nd day of the month')
  • 我试过这个later.parse.text("every second day of the month") 但它不正确。您的解决方案对我有帮助,谢谢
  • 把你尝试过但不起作用的东西放在一个好问题中的很大一部分。

标签: javascript node.js cron laterjs


【解决方案1】:

这是每个月的第二天 00:00 运行的 chron 表达式,请参阅link

0 0 2 * *

【讨论】:

  • 你的解决方法也正确,谢谢
猜你喜欢
  • 1970-01-01
  • 2023-03-22
  • 1970-01-01
  • 2019-01-23
  • 2022-06-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多