创建更高级的调度程序
所以我将升级一些调度程序代码,它目前非常愚蠢。我很乐意将代码升级为类似于 Outlook 的每周一下午 5 点等或每月第三个周四的代码。
目前的日程安排系统不能指定一周中的某一天,只能指定一个时期,如(每天、每周、每月、每年),也不能指定时间或特定的一天,如每周只有星期五。而且每天只有早上 7 点。 (所以每周是周五早上 7 点)
我可以查找任何资源来了解这是如何工作的吗? 由于使用了“outlook”一词,到目前为止,我的谷歌搜索没有发现任何有用的信息。
So i am going to be upgrading some scheduler code and it is currently very dumb. I would love to upgrade the code to be similar to Outlook's every Monday at 5 etc. or every third Thursday of the month.
Current schedule system can not specify a day of the week only a period like (daily, weekly, monthly, annually) and can not specify time, or a specific day, like weekly is only on Friday. and the daily is only at 7 am. (so weekly would be Friday at 7 am)
Are there any resources that I can look up to understand how this would work?
My Google searches so far have turned up nothing useful, due to using the word outlook.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Boost.Date_Time 应该为您提供日期操作函数需要。应该更容易使用他们的(调试的)代码,而不是尝试重新发明它。
Boost.Date_Time should give you the date manipulation functions you need. Should be easier to use their (debugged) code rather than trying to reinvent it.