Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

truetime

bởi cccat6

Coding Agents & IDEs
430Lượt tải do clawskills.sh công bố
2Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install cccat6/truetime

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết