【问题标题】:Notion API - Precision of last_edited_time and created_timeNotion API - last_edited_time 和 created_time 的精度
【发布时间】:2023-02-21 05:51:57
【问题描述】:

我为我妻子写了一个 google tasks 的集成,但最终意识到 Notion 只有精确到分钟的时间戳。 起初我认为时间戳是正常的,因为这里说它们可以与毫秒进行比较: https://developers.notion.com/changelog/dates-with-times-and-timezones-are-now-supported-on-database-date-filters

但是这里说时间戳只精确到分钟存储: https://developers.notion.com/changelog/last-edited-time-is-now-rounded-to-the-nearest-minute

在 API 文档中,需要以粗体表示 create_time 和 last_edited_time 仅精确到分钟(并且时间会向下舍入)。 https://developers.notion.com/reference/post-database-query-filter#date-filter-condition

这是 Notion 限制使用其 Api 的一种方式吗?

将其发布到堆栈上,以便其他人在搜索为什么 API 仅适用于日期过滤器的分钟精度时偶然发现它。

【问题讨论】:

    标签: notion-api


    【解决方案1】:

    关于原始发布日期,最近才将按时间戳过滤添加到 API 中: https://developers.notion.com/changelog/filter-databases-by-timestamp-even-if-they-dont-have-a-timestamp-property

    所以希望添加更精确的时间戳过滤器。

    更新:

    毫秒精度现在可用于页面:https://developers.notion.com/reference/page

    【讨论】:

      猜你喜欢
      • 2021-08-18
      • 1970-01-01
      • 1970-01-01
      • 2021-08-17
      • 2021-09-25
      • 2022-01-13
      • 2021-08-04
      • 2021-08-06
      • 2021-11-30
      相关资源
      最近更新 更多