跳到正文
cccskills
免费在 GitHub 公开

openakita/skills@datetime-tool

Get the current date and time, format dates, calculate the difference between dates, and convert times between time zones. It can also return details such as the weekday, with output in formats suited to different locales.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

实测评分 未实测

查看安装方法

适用场景

  • Checking the current time in a chosen time zone
  • Formatting dates for reports or messages
  • Calculating days between two dates
  • Converting a meeting time across time zones

包含的文件(4)

  • SKILL.md1.4 KB
  • agents/openai.yaml323 B
  • references/REFERENCE.md1.3 KB
  • scripts/get_time.py3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Save useful facts, user preferences, skills, rules, and lessons from errors to long-term memory. Each entry can include an importance level to indicate whether it should be retained as a lasting preference, a common pattern, or temporary information.

中文简介正在准备中。当前显示英语简介。

  • Remembering a user's writing or coding preferences
  • Saving a workflow that worked well
  • Recording a lesson learned from an error
openakita/openakita20052026年9月24日 更新

Click a button, link, or other page element by providing a CSS selector or matching text. First open the target page with `browser_navigate`, then use this skill to select the element to click.

中文简介正在准备中。当前显示英语简介。

  • Clicking a button by its CSS selector
  • Following a link by its visible text
  • Selecting a page option by matching text
openakita/openakita20052026年9月24日 更新

Read text from the current webpage, either across the whole page or from an element selected with a CSS selector. Use it to check page information, retrieve displayed element values, extract text, or verify what a page contains.

中文简介正在准备中。当前显示英语简介。

  • Reading all text on the current page
  • Extracting text from a selected page section
  • Checking displayed values or confirming page content
openakita/openakita20052026年9月24日 更新

See every open browser tab with its zero-based index, URL, and page title. This makes it easier to find a specific page, review what is open, or identify a tab before switching to it during browser work.

中文简介正在准备中。当前显示英语简介。

  • Finding a page among several open tabs
  • Checking the URLs and titles of open pages
  • Identifying a tab before switching to it
openakita/openakita20052026年9月24日 更新

Open a web page at a specified URL and prepare the browser for later interaction. Use it before clicking page elements or typing into fields; the browser starts automatically if it is not already running.

中文简介正在准备中。当前显示英语简介。

  • Open a search engine or another web page
  • Open a local HTML file in the browser
  • Navigate before clicking or typing
openakita/openakita20052026年9月24日 更新

Open a URL in a new browser tab while keeping the current page available. Use it to work across multiple pages without losing your place; the browser must already be running before the new tab can be opened.

中文简介正在准备中。当前显示英语简介。

  • Open a second page without leaving the current one
  • Compare information across browser tabs
  • Keep a reference page open while navigating elsewhere
openakita/openakita20052026年9月24日 更新

查看 openakita 的全部技能

报告此技能的问题