OpenClaw 会标准化时间戳,使模型看到单一参考时间。Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
消息信封(默认使用本地时区)
传入消息会被包装在如下信封中:envelopeTimezone: "utc"使用 UTC。envelopeTimezone: "user"使用agents.defaults.userTimezone(若未设置则回退到主机时区)。- 使用明确的 IANA 时区(例如
"Europe/Vienna")来指定固定偏移。 envelopeTimestamp: "off"会从信封头中移除绝对时间戳。envelopeElapsed: "off"会移除经过时间后缀(如+2m这种格式)。
示例
本地时区(默认):工具负载(原始提供方数据 + 规范化字段)
工具调用(channels.discord.readMessages、channels.slack.readMessages 等)会返回原始提供方时间戳。
我们还会附加规范化字段以保持一致性:
timestampMs(UTC 自纪元以来的毫秒数)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 — 完整的日期/时间行为和示例