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 dependencies needed. Use when: (1) format a date or time, (2) convert timezone, (3) 'what time is it in Tokyo', (4) 'how many days until X', (5) locale-specific formatting, (6) relative time like '3 hours ago'. Homepage: https://clawhub.ai/skills/locale-dates

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "locale-dates" with this command: npx skills add tommot2/locale-dates

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

World Timezone Pro

World timezone converter — convert times across 200+ cities worldwide. Perfect for international calls, remote work, travel planning, and global business. Fe...

Registry SourceRecently Updated
661Profile unavailable
Coding

Clawlendar

Timestamp-first perpetual calendar interop for AI agents. Use when agents need cross-calendar conversion (Gregorian/Julian/ISO/ROC/Buddhist/Japanese era/sexa...

Registry Source
2790Profile unavailable
General

Calendar Hold Sync

Sync one or more source Google calendars into private Busy hold events in one or more target calendars using gog. Use when users need idempotent double-booki...

Registry SourceRecently Updated
8052Profile unavailable
General

飞书会议室智能预订

飞书会议室查询与预订。当用户提到"查会议室"、"订会议室"、"空闲会议室"、"预订会议室"、"开会"、"找个会议室"、"F4会议室"、"紫金会议室"、"哪个会议室有空"、或者创建会议时需要自动匹配空闲会议室时,必须使用此 skill。也适用于用户要求创建日程并指定楼栋/区域时自动完成会议室预订的场景。也适用于用户...

Registry SourceRecently Updated
850Profile unavailable