← 返回 Skills 市场
system-time
作者
xiaoxianceng874-cyber
· GitHub ↗
· v1.0.0
· MIT-0
219
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install hengheng-system-time
功能描述
Get accurate system time in various formats and timezones. Use when the user needs to know the current time, date, timestamp, or wants to convert between tim...
使用说明 (SKILL.md)
System Time
Get accurate system time information in multiple formats.
Quick Usage
Current Time (Local)
date # Human readable
date -Iseconds # ISO 8601 with seconds
date +%s # Unix timestamp
Current Time (UTC)
date -u # UTC human readable
date -u -Iseconds # UTC ISO 8601
date -u +%s # UTC Unix timestamp (same as local)
Specific Timezone
TZ=Asia/Shanghai date # Shanghai time
TZ=America/New_York date # New York time
TZ=Europe/London date # London time
Common Formats
| Format | Command | Example Output |
|---|---|---|
| ISO 8601 | date -Iseconds |
2024-03-11T16:30:00+08:00 |
| Unix timestamp | date +%s |
1710145800 |
| RFC 2822 | date -R |
Mon, 11 Mar 2024 16:30:00 +0800 |
| Custom | date "+%Y-%m-%d %H:%M:%S" |
2024-03-11 16:30:00 |
Timezone Conversion
Convert from one timezone to another:
# Convert specific time from Shanghai to New York
TZ=America/New_York date -d "2024-03-11 16:30:00 CST"
# List available timezones
ls /usr/share/zoneinfo/
Python Alternative (for scripting)
from datetime import datetime, timezone
# Current UTC time
utc_now = datetime.now(timezone.utc)
print(utc_now.isoformat())
# Current local time
local_now = datetime.now()
print(local_now.isoformat())
# Unix timestamp
print(int(utc_now.timestamp()))
Notes
- Unix timestamp is always UTC (timezone-independent)
- ISO 8601 format includes timezone offset
- Use
timedatectlon Linux systems for system clock info
安全使用建议
This is an instruction-only skill that runs local date and simple Python commands to show/convert times and may list your system's zoneinfo directory. It does not request credentials, install software, or make network calls. If you permit the agent to execute shell/Python commands, it will run these local commands; if you prefer no local execution, do not invoke the skill or restrict the agent's execution privileges. Also note timezone data paths may differ on non-Linux systems (e.g., macOS or minimal containers).
功能分析
Type: OpenClaw Skill
Name: hengheng-system-time
Version: 1.0.0
The skill bundle provides standard documentation and command-line examples for retrieving system time, timestamps, and performing timezone conversions using common utilities like 'date' and Python's 'datetime' library. No malicious code, data exfiltration, or suspicious instructions were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The name/description (system time and timezone conversion) matches the instructions: shell date commands, TZ environment usage, listing zoneinfo, and a small Python snippet. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
SKILL.md only instructs running local date commands, setting TZ, listing /usr/share/zoneinfo, and running a short Python snippet for time formats—these stay within the stated purpose and do not ask for unrelated file reads or network exfiltration.
Install Mechanism
No install spec or code files are present; this is instruction-only so nothing will be written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are required beyond using TZ temporarily in commands; requested access is proportional to the task.
Persistence & Privilege
Skill is not always-enabled and does not request persistent presence or modify other skills/system settings. It only instructs transient local commands.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hengheng-system-time - 安装完成后,直接呼叫该 Skill 的名称或使用
/hengheng-system-time触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release—provides tools for retrieving and converting system time in various formats and timezones.
- Supports ISO 8601, Unix timestamp, RFC 2822, and customizable formats.
- Easily get current time for any specified timezone.
- Explains command-line usage with `date` and timezone options.
- Includes Python code examples for programmatic access.
- Quick reference table for formats and commands.
元数据
常见问题
system-time 是什么?
Get accurate system time in various formats and timezones. Use when the user needs to know the current time, date, timestamp, or wants to convert between tim... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 219 次。
如何安装 system-time?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hengheng-system-time」即可一键安装,无需额外配置。
system-time 是免费的吗?
是的,system-time 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
system-time 支持哪些平台?
system-time 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 system-time?
由 xiaoxianceng874-cyber(@xiaoxianceng874-cyber)开发并维护,当前版本 v1.0.0。
推荐 Skills