time-utils
Compute and format dates/times in arbitrary timezones using a small set of bundled bash scripts. Use when the user asks about "what time is it", "current time in <city>", date math, or timezone conversions.
来源信息
- 仓库
- triggerdotdev/references
- 最近来源活动
- 2026年6月2日 12:00
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- Forks
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
4 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- time-utils
- description
- Compute and format dates/times in arbitrary timezones using a small set of bundled bash scripts. Use when the user asks about "what time is it", "current time in <city>", date math, or timezone conversions.
# Time utilities
This skill bundles small bash scripts that shell out to `date` for timezone-aware answers without the model having to reason about offsets.
## When to use
- The user asks for the current time in a specific timezone (e.g. "what time is it in Tokyo?")
- The user wants a date formatted in a specific way
- The user needs a relative time (e.g. "what's the date 3 days from now?")
## Scripts
### `scripts/now.sh [TZ]`
Prints the current time in the given IANA timezone (default `UTC`). Example:
```
bash scripts/now.sh America/Los_Angeles
```
### `scripts/add.sh DAYS [TZ]`
Prints a date `DAYS` days from now in the given timezone. `DAYS` can be negative. Example:
```
bash scripts/add.sh 3 Europe/London
```
## Tips
- IANA timezone names only (`America/New_York`, not `EST`).
- See `references/timezones.txt` for a short cheat-sheet of common zones.
在 GitHub 查看