Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -34% | 0% |
处理时间和日期相关的操作。
运行脚本获取当前时间:
bashpython scripts/get_time.py
支持的参数:
--timezone <tz>: 指定时区 (如 Asia/Shanghai, UTC)--format <fmt>: 日期格式 (如 %Y-%m-%d %H:%M:%S)bashpython scripts/get_time.py --diff "2024-01-01" "2024-12-31"
bashpython scripts/get_time.py --convert "2024-01-01 12:00:00" --from-tz UTC --to-tz Asia/Shanghai
脚本输出 JSON 格式:
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 |
Other measured skills in the registry, with their headline benchmark lift.