iso8601 - In ISO 8601 does 'P1D' mean midnight tonight? 24 hours from now? Midnight tomorrow night?
问题描述
I have a virtual assistant app that includes a task manager. Some 'daily' tasks (like 'Check the mail' need to drop off at midnight so they don't clutter up the task list.
We use ISO 8601 to control how long until the task falls off the list.
I've looked all over trying to get clarity on the definition of a "D" day. For example: Does P1D mean 24 hours? Midnight tomorrow? Midnight tonight?
I'm trying to achieve midnight tonight.
解决方案
这是一个间隔,而不是一天中的特定时间,因此没有起点就毫无意义。
因此,在这种情况下,这可能意味着任务在完成 24 小时后被丢弃。
推荐阅读
- r - 按月年日期列排序数据框
- azure-data-factory - 是否可以通过 Git 为 ADFv2 中的 HDInsightHive 活动类型获取 Hive 脚本?
- python-3.x - 如何在使用python的插入查询中将mongodb内置函数作为参数传递
- python - 单击网页上的按钮后为空 GET 响应
- javascript - 打字稿泛型:使用输出参数类型来构建输入参数类型
- c# - 如何统一将标记实例化为球体对象(GLOBE)
- outlook - Outlook 任务文件夹删除问题
- angularjs - 如何在 angularJS 中使用 angular2 库?
- android - 如何仅旋转图像,而不是 Imageview
- c# - 生成带有校验位的唯一公共用户标识符