提供日期时间工具,包括获取当前时间和计算日期差。 当用户询问当前时间、日期或需要日期相关计算时使用。
提供日期和时间相关的实用工具。
通过 shell_executor 执行以下命令(脚本路径相对于 backend 工作目录):
获取指定时区的当前日期和时间。
python skills/datetime-skill/scripts/tools.py get_current_time --timezone=Asia/Shanghai
参数:
--timezone:IANA 时区标识符,默认 Asia/Shanghai。常用值:US/Eastern、Europe/London、UTC输出示例:
2026-02-22 21:45:30 CST (UTC+0800)
计算两个日期之间的天数差。
python skills/datetime-skill/scripts/tools.py calculate_date_diff --date1=2024-01-01 --date2=2024-12-31
参数:
--date1:第一个日期,格式 YYYY-MM-DD(必填)--date2:第二个日期,格式 YYYY-MM-DD(必填)输出示例:
2024-01-01 和 2024-12-31 之间相差 365 天
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Control Sonos speakers (discover/status/play/volume/group).
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
Capture frames or clips from RTSP/ONVIF cameras.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Category:tools