okf/datetime
Timestamps are ISO 8601 date-times with an explicit UTC offset, e.g. 2026-06-30T14:00:00Z, or dates, e.g. 2026-06-30 (OKF §5).
OKF’s timestamps (generated.at, verified.at, stale_after, and the sources’ last_modified and usage_window) are ISO 8601 date-times with an explicit UTC offset, such as 2026-06-30T14:00:00Z, or dates, such as 2026-06-30, which mean the start of that day in UTC (§5). Either way an instant means the same everywhere, and whether a concept is stale is a plain comparison (§5.5). A time with no offset depends on where it’s read.
Example
Section titled “Example”This file breaks the rule:
---type: Metrictitle: Monthly churndescription: The share of customers who cancel in a month.stale_after: 2026-12-31T00:00:00---
Churn is the customers who cancel in a month, divided by the customers at its start.okforest validate reports:
churn.md 5:1 error `stale_after` must be an ISO 8601 date-time with an explicit UTC offset, such as `2026-12-31T00:00:00Z`, or a date, `2026-12-31` (got `2026-12-31T00:00:00`). okf/datetimeFixed:
---type: Metrictitle: Monthly churndescription: The share of customers who cancel in a month.stale_after: 2026-12-31T00:00:00Z---
Churn is the customers who cancel in a month, divided by the customers at its start.