跳到正文
TakoAPI
返回技能列表

truetime

由 cccat6 提供

Coding Agents & IDEs
430下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Ensure real-time accurate scheduling and planning across UTC, server time, NTP-sourced time, user local time.

描述

该技能的功能

TrueTime handles accurate time calculations across timezones, DST boundaries, and calendar units. It reads the current clock before computing, resolves to UTC first, and converts for display. Supports relative durations, absolute timestamps, cross-timezone coordination, Chinese lunar dates, and NTP as an alternative time source.

It computes through UTC first and verifies the delta before execution, preventing wrong-offset errors that come from naive datetime arithmetic or copy-pasted example values.

何时使用

  • Scheduling a cron job in 3 hours from Tokyo time
  • Converting a London meeting time to US East coast
  • Setting a reminder 1.5 months from now
  • Planning a deadline that crosses a DST transition
  • Checking a Chinese lunar date alongside a Gregorian timestamp

示例工作流

输入

User asks: Remind me in 45 minutes, I'm in New York

智能体
  1. 1

    Extracts timing intent: 45 minutes, America/New_York

  2. 2

    Runs true_time.mjs --plus 45m --user-tz America/New_York to get current and target times

  3. 3

    Verifies target_utc minus now_utc equals 2700 seconds

  4. 4

    Returns now_utc, target_utc, target_user_tz, delta_seconds, and time_source

输出

Reminder confirmed for 45 minutes from now, shown in both UTC and America/New_York with delta verification

安装

clawhub install cccat6/truetime

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接