---
title: "时间是世界属性"
---

> Documentation Index
> Fetch the complete documentation index at: https://koine.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# 时间是世界属性

## 背景

时间可以建模成普通关系、世界属性，或隐式时间轴。它影响每个世界是否都要重复声明时间，以及时间怎么推进。

## 选项

- 时间作为关系。
- 时间作为世界属性。
- 隐式时间轴，每次变化自动前进。

## 决定

时间是世界属性 `time`，用 `now()` 读，`time = now() + d` 推进。没有 `wait`，时间不动。

## 理由

- 时间是每个世界都有的，不需要每个世界重复声明。
- 显式推进，没有隐式时间流逝。
- 事件时间用关系记录（`paid_at`），和世界时间分开。

## 后果

没有 `wait` 时间就不动；历史性质必须记录时间戳。时间比较要归一化到 UTC，时区规则见 [ADR-0009](https://koine.systems/notes/decisions/0009-fixed-offset-timezone/)。

Source: https://koine.systems/notes/decisions/0005-time-as-world-attribute/index.mdx
