openakita/skills@datetime-tool

Get current time, format dates, calculate date differences, and convert timezones. Use this skill when the user asks about time, dates, timezone conversions, weekdays, or needs date calculations and formatting in any locale.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openakita/skills@datetime-tool" with this command: npx skills add openakita/openakita/openakita-openakita-datetime-tool

DateTime Tool

处理时间和日期相关的操作。

When to Use

  • 用户询问当前时间或日期
  • 需要格式化日期输出
  • 计算两个日期之间的差值
  • 时区转换
  • 获取星期几、月份名称等

Instructions

获取当前时间

运行脚本获取当前时间:

python scripts/get_time.py

支持的参数:

  • --timezone <tz>: 指定时区 (如 Asia/Shanghai, UTC)
  • --format <fmt>: 日期格式 (如 %Y-%m-%d %H:%M:%S)

计算日期差值

python scripts/get_time.py --diff "2024-01-01" "2024-12-31"

时区转换

python scripts/get_time.py --convert "2024-01-01 12:00:00" --from-tz UTC --to-tz Asia/Shanghai

Output Format

脚本输出 JSON 格式:

{
  "datetime": "2024-01-15 10:30:00",
  "date": "2024-01-15",
  "time": "10:30:00",
  "timezone": "Asia/Shanghai",
  "weekday": "Monday",
  "timestamp": 1705285800
}

Common Formats

格式示例
ISO2024-01-15T10:30:00+08:00
中文2024年01月15日 10:30:00
美式01/15/2024
欧式15/01/2024

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

file-manager

No summary provided by upstream source.

Repository SourceNeeds Review
General

pptx

No summary provided by upstream source.

Repository SourceNeeds Review
General

docx

No summary provided by upstream source.

Repository SourceNeeds Review
General

xlsx

No summary provided by upstream source.

Repository SourceNeeds Review