获取当前时间、格式化日期、计算日期差值、时区转换。 当用户询问时间、日期、时区相关问题时使用此技能。 关键词: 时间, 日期, 时区, 今天, 现在, 星期, 几点
处理时间和日期相关的操作。
运行脚本获取当前时间:
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
脚本输出 JSON 格式:
{
"datetime": "2024-01-15 10:30:00",
"date": "2024-01-15",
"time": "10:30:00",
"timezone": "Asia/Shanghai",
"weekday": "Monday",
"timestamp": 1705285800
}
| 格式 | 示例 | |------|------| | ISO | 2024-01-15T10:30:00+08:00 | | 中文 | 2024年01月15日 10:30:00 | | 美式 | 01/15/2024 | | 欧式 | 15/01/2024 |
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