Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cass-2003/local-workflow-skill --skill datetime-timezonesgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/datetime-timezones)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/datetime-timezones"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/datetime-timezones/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/datetime-timezones"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/datetime-timezones.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00132 | $0.03505 |
| Opus 5.5 | $0.00053 | $0.01402 |
| Sonnet 5.5 | $0.00026 | $0.00701 |
| Haiku 4.5 | $0.00013 | $0.00350 |
Grade A, and why
datetime-timezones scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DateTime & Timezones Skill — 日期时区处理
何时使用
- 跨时区业务(用户在不同时区,服务部署在另一个时区)
- 调度任务 / cron / 报表统计(按"自然日"边界)
- 调试"为什么少了一小时" / "为什么 3 月 13 日变 2 月 28 日"
- 数据库存日期 / 时间戳的格式选型
- 国际化日期格式输出
一、核心概念(永远先理清)
三种时间表达
| 类型 | 例子 | 用途 |
|---|---|---|
| UTC instant(绝对时刻) | 2026-05-06T07:00:00Z |
服务器存储 / 跨服务通信 |
| Local DateTime("墙上时间") | 2026-05-06 16:00 |
用户输入 / 显示(带时区上下文) |
| Zoned DateTime(带时区) | 2026-05-06 16:00 Asia/Tokyo |
调度 / 跨时区精确锚点 |
永远存 UTC,显示时按用户时区转换。例外:跨夏令时调度需存 Local + Zone(见后)。
Unix 时间戳
- 秒:
1715000000—— 绝大多数系统 - 毫秒:
1715000000000—— JS / Java - 微秒/纳秒:金融 / 高精度场景
无时区概念(Unix epoch = 1970-01-01 UTC),统一基准。
IANA 时区 ID
Asia/Shanghai
Asia/Tokyo
Asia/Kolkata
America/New_York
America/Los_Angeles
Europe/London
Europe/Paris
Australia/Sydney
UTC
永远不要用 CST / EST / PST —— 含糊(CST = China? 也是 Central Standard Time? 也是 Cuba Standard Time?)。
DST(夏令时)
部分时区每年切换:
- 美国:3 月第二周日 02:00 → 03:00(春进),11 月第一周日 02:00 → 01:00(秋退)
- 欧洲:3 月最后周日 / 10 月最后周日
- 澳洲(南半球):相反方向
- 中国 / 日本 / 印度 / 大部分非洲:无 DST
DST 切换日有"消失的小时"和"重复的小时":
2026-03-08 (US):
01:30 EST → 03:30 EDT ← 02:30 不存在
2026-11-01 (US):
01:30 EDT → 01:30 EST ← 01:30 重复两次
二、ISO 8601 / RFC 3339
2026-05-06T07:00:00Z ← UTC(Z = Zulu)
2026-05-06T16:00:00+09:00 ← 带 offset
2026-05-06T16:00:00.123+09:00 ← 毫秒
20260506T070000Z ← basic 格式(不推荐)
关键:+09:00 是 offset 不是 time zone。日本永远 +09:00(无 DST),但纽约可能 -05:00(EST)或 -04:00(EDT)。
三、JavaScript:Temporal API(替代 Date)
// ⚠️ Date 有大量坑:可变、月份从 0 开始、无时区、混淆 instant 和 local
// → 用 Temporal(Stage 3,2025 部分浏览器原生 + polyfill)
// 1. UTC instant
const now = Temporal.Now.instant()
now.toString() // '2026-05-06T07:00:00Z'
// 2. Zoned DateTime
const tokyo = Temporal.Now.zonedDateTimeISO('Asia/Tokyo')
tokyo.toString() // '2026-05-06T16:00:00+09:00[Asia/Tokyo]'
// 3. 转换
const utc = tokyo.toInstant()
const ny = tokyo.withTimeZone('America/New_York')
// 4. 算术
tokyo.add({ days: 7 })
tokyo.subtract({ hours: 3 })
const diff = tokyo.until(other, { largestUnit: 'days' })
// 5. 解析
Temporal.Instant.from('2026-05-06T07:00:00Z')
Temporal.PlainDate.from('2026-05-06')
Temporal.ZonedDateTime.from('2026-05-06T16:00:00[Asia/Tokyo]')
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 326 lines · 132 tokens per session scan A 908f8f7f31df
datetime-timezones is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 132 tokens to every session and 3,505 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
datetime-timezones compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| datetime-timezonescass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 132 | Claude Code, Codex |
| intl-expansionalirezarezvani/claude-skills | Skill | 31k | yesterday | MIT | A | 27 | Claude Code |
| chinese-documentationjnMetaCode/superpowers-zh | Skill | 8.7k | 3d ago | MIT | A | 62 | Claude Code |
| azure-ai-translation-text-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 60 | Claude Code |
| hardenfengshao1227/ccg-workflow | Skill | 6.0k | 14d ago | MIT | A | 62 | Claude Code |
| edit-sitemicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 104 | Claude Code |
| asc-subscription-localizationrorkai/app-store-connect-cli-skills | Skill | 1.2k | yesterday | MIT | A | 60 | Claude Code |