← 返回
未分类 中文

Locale Dates

Format and convert dates, times, and durations. Compute timezones, relative time, and weekday/month names in local language. Instruction-based — no exec or d...
Format and convert dates, times, and durations. Compute timezones, relative time, and weekday/month names in local language. Instruction-based — no exec or d...
tommot2
未分类 clawhub v3.1.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 543
下载
💾 0
安装
1
版本
#calendar#dates#duration#format#i18n#international#iso8601#latest#locale#localization#relative-time#time#timezone#weekday

概述

Locale Dates v3.1

Install: clawhub install locale-dates

Date/time formatting and conversion. Pure instructions — no exec, no dependencies.

Language

Detect from user's message language. Default: English.

How It Works

The agent formats dates and times using its built-in knowledge. No exec calls, no scripts, no external tools.

Timezone Conversion

Use well-known UTC offsets. Common timezones:

IDOffsetRegion
----:------:--------
UTC+0Universal
Europe/Oslo+1/+2Norway, CEST winter/summer
Europe/London+0/+1UK, BST
America/New_York-5/-4US Eastern, EDT
America/Chicago-6/-5US Central, CDT
America/Los_Angeles-8/-7US Pacific, PDT
Asia/Tokyo+9Japan
Asia/Shanghai+8China
Australia/Sydney+10/+11Australia, AEDT

Note: The agent knows the current time from session_status. Apply offsets mentally — no exec needed.

Relative Time

Compute date differences using built-in knowledge:

User saysAgent computes
--------------------------
"3 timer siden"Current time minus 3 hours
"om 2 dager"Current date plus 2 days
"hvor lenge til 17. mai"Days from today to 2026-05-17
"i forrige uke"7 days ago
"nest mandag"Next Monday's date

Format Conversion

Convert between formats using known patterns:

FormatPatternUsed By
--------------------------
ISO 8601YYYY-MM-DDTHH:mm:ss±HH:MMTechnical, logs, APIs
EuropeanDD.MM.YYYYNorway, Germany, EU
AmericanMM/DD/YYYYUnited States
UKDD/MM/YYYYUK, Ireland, Australia
JapaneseYYYY年MM月DD日Japan

Weekday and Month Names

Provide names in the user's language:

LanguageMondayJanuary
---------------------------
Norwegianmandagjanuar
EnglishMondayJanuary
GermanMontagJanuar
Frenchlundijanvier
Spanishlunesenero
Japanese月曜日1月

Quick Commands

User saysAction
-------------------
"hva er klokka i Tokyo"Apply offset, format in user's locale
"hvor mange dager til X"Compute difference
"formatter denne datoen"Convert format
"norsk dato for 2026-04-03"Localized format

Guidelines for Agent

  1. No exec — use built-in date knowledge
  2. Always specify timezone — ambiguous dates cause errors
  3. Check SOUL.md/USER.md for user's preferred format
  4. Match user language — "mandag 3. mars" not "Monday, March 3"
  5. Use ISO 8601 per SOUL.md convention unless user requests otherwise
  6. UTC vs local time — OpenClaw logs, session transcripts, and system messages use UTC timestamps internally. When presenting times to the user, ALWAYS convert to their local timezone (Europe/Oslo = UTC+1 winter / UTC+2 summer). Never show raw UTC times without noting the conversion. Rule of thumb: if you see a timestamp and the hour seems wrong, check if it's UTC and convert.

What This Skill Does NOT Do

  • Does NOT use exec, shell, or any subprocess
  • Does NOT modify any files
  • Does NOT require Node.js, PowerShell, or any external tool
  • Does NOT persist anything

More by TommoT2

  • setup-doctor — Diagnose and fix OpenClaw setup issues
  • context-brief — Persistent context survival across sessions
  • smart-api-connector — Connect to any REST API

Install the full suite:

clawhub install locale-dates setup-doctor context-brief smart-api-connector

Changelog

v3.1 — 2026-04-23

  • Added rule #6: UTC vs local time — always convert UTC timestamps to user's local timezone when presenting to user. OpenClaw logs and session transcripts use UTC internally.

版本历史

共 1 个版本

  • v3.1.0 当前
    2026-05-07 03:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Smart API Connector

tommot2
使用代理内置的 web_fetch 连接到任意 REST API,自动处理认证头、JSON 请求体、错误解析和重试。适用场景:用户想要...
★ 0 📥 578

Skill Analytics

tommot2
使用文件状态跟踪监控 ClawHub 技能性能;通过 web_fetch拉取公开统计,跟踪推荐及其结果,避免重复。
★ 1 📥 541

Workflow Builder Lite

tommot2
构建并执行带条件逻辑的多步工作流,将 API 调用、代理动作和 shell 命令链接为序列,并支持 if/else 分支。
★ 0 📥 612