← 返回 Skills 市场
changsheng0804

current-time

作者 changsheng0804 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
117
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install current-time
功能描述
获取当前时间的工具。返回格式化的日期时间和时区信息。 USE FOR: - "现在几点了", "当前时间" - "今天是几号", "什么日期" - 获取带时区的时间信息
使用说明 (SKILL.md)

当前时间工具

快速获取当前日期时间,支持多时区显示。

使用场景

适用

  • 用户询问当前时间
  • 需要时间戳用于日志记录
  • 需要确认日期进行日程安排

快速开始

用户:现在几点了
AI:[执行] → 返回格式化时间

执行流程

  1. 获取系统时间

    date +"%Y年%m月%d日 %H:%M:%S %Z"
    
  2. 格式化输出

    • 日期:YYYY年MM月DD日
    • 时间:HH:MM:SS
    • 时区:显示当前时区

输出格式

当前时间:2026年04月14日 18:05:32 CST

示例

用户:今天星期几?

AI

date +"今天是%Y年%m月%d日,星期%u"

输出:今天是2026年04月14日,星期2

安全使用建议
This skill is simple and appears safe: it runs the local date command to produce formatted time and timezone output and requests no credentials or network access. Before installing, confirm that the agent environment has a standard date binary on PATH and that its timezone settings are correct for your needs. Also be aware the agent will execute a shell command (date) when invoked — if you run agents in restricted environments, ensure executing small local commands is acceptable.
功能分析
Type: OpenClaw Skill Name: current-time Version: 1.0.0 The skill is a straightforward utility for retrieving the current system time and date using the standard 'date' command. The instructions in SKILL.md are transparent, align perfectly with the stated purpose, and do not involve any risky behaviors such as network access, file system modification, or data exfiltration.
能力评估
Purpose & Capability
Name, description, and declared requirement (date binary) align with the actual behavior: printing the current date/time and timezone using the date command.
Instruction Scope
SKILL.md only instructs running date with format strings. It does not reference other files, environment variables, network endpoints, or collect unrelated data.
Install Mechanism
No install spec or external downloads; this is instruction-only and relies on an existing system binary (date), which is appropriate for the stated purpose.
Credentials
No environment variables, credentials, or config paths are requested — proportional to a simple time utility.
Persistence & Privilege
Skill is not always-enabled and does not request persistent or elevated privileges. Autonomous model invocation is allowed by platform default but is not problematic here given the minimal scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install current-time
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /current-time 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of current-time skill. - Quickly retrieves and formats the current date, time, and timezone information. - Supports user queries like “现在几点了”, “当前时间”, and “今天是几号”. - Shows output in a clear format including date, time, and timezone. - Suitable for logging, schedule checking, and displaying time with timezone. - Requires the system "date" command for execution.
元数据
Slug current-time
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

current-time 是什么?

获取当前时间的工具。返回格式化的日期时间和时区信息。 USE FOR: - "现在几点了", "当前时间" - "今天是几号", "什么日期" - 获取带时区的时间信息. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 117 次。

如何安装 current-time?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install current-time」即可一键安装,无需额外配置。

current-time 是免费的吗?

是的,current-time 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

current-time 支持哪些平台?

current-time 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 current-time?

由 changsheng0804(@changsheng0804)开发并维护,当前版本 v1.0.0。

💬 留言讨论