OpenClaw 会对时间戳进行标准化,这样模型看到的是单一参考时间。Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
消息 envelope(默认使用本地时间)
入站消息会被包装成如下 envelope:envelopeTimezone: "utc"使用 UTC。envelopeTimezone: "user"使用agents.defaults.userTimezone(回退到主机时区)。- 使用显式 IANA 时区(例如
"Europe/Vienna")可获得固定偏移。 envelopeTimestamp: "off"会从 envelope 标头中移除绝对时间戳。envelopeElapsed: "off"会移除经过时间后缀(即+2m这种样式)。
示例
本地时间(默认):工具载荷(原始提供商数据 + 标准化字段)
工具调用(channels.discord.readMessages、channels.slack.readMessages 等)会返回原始提供商时间戳。
我们还会附加标准化字段以保持一致性:
timestampMs(UTC epoch 毫秒)timestampUtc(ISO 8601 UTC 字符串)
用于系统提示词的用户时区
设置agents.defaults.userTimezone,告诉模型用户的本地时区。如果它
未设置,OpenClaw 会在运行时解析主机时区(不会写入配置)。
Current Date & Time部分,带本地时间和时区Time format: 12-hour或24-hour
agents.defaults.timeFormat(auto | 12 | 24)控制提示词格式。
完整行为和示例请参见 Date & Time。
相关内容
- Heartbeat — 活跃时段会使用时区进行调度
- Cron Jobs — cron 表达式会使用时区进行调度
- Date & Time — 完整的日期/时间行为与示例