#601

Global Rank · of 601 Skills

datetime-tool AI Agent Skill

View Source: openakita/openakita

Safe

Installation

npx skills add openakita/openakita --skill datetime-tool

29

Installs

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

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

Installs

Installs 29
Global Rank #601 of 601

Security Audit

ath Safe
socket Safe
Alerts: 0 Score: 90
snyk Low
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

How to use this skill

1

Install datetime-tool by running npx skills add openakita/openakita --skill datetime-tool in your project directory. Run the install command above in your project directory. The skill file will be downloaded from GitHub and placed in your project.

2

No configuration needed. Your AI agent (Claude Code, Cursor, Windsurf, etc.) automatically detects installed skills and uses them as context when generating code.

3

The skill enhances your agent's understanding of datetime-tool, helping it follow established patterns, avoid common mistakes, and produce production-ready output.

What you get

Skills are plain-text instruction files — not executable code. They encode expert knowledge about frameworks, languages, or tools that your AI agent reads to improve its output. This means zero runtime overhead, no dependency conflicts, and full transparency: you can read and review every instruction before installing.

Compatibility

This skill works with any AI coding agent that supports the skills.sh format, including Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider, and other tools that read project-level context files. Skills are framework-agnostic at the transport level — the content inside determines which language or framework it applies to.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.