360 Secure SkillHub
360 安全技能中心

echo-now

一个单次运行的命令行工具,通过脚本打印 utc=YYYY-MM-DDTHH:MM:SSZ 和 date=YYYY-MM-DD 两行,便于日志、文件名或清单复用;依赖 POSIX date,不处理输入,也不写入文件。

terrycarter1985
terrycarter1985
热度 9.66
最近更新 2026-08-26 05:37:45
分类:效率依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add echo-now
Metadata
name
echo-now
description
Print the current UTC time and ISO date in a deterministic, copy-friendly format. Use when an agent or operator needs a stable timestamp string for logs, file names, notes, or manifests and wants a single reusable command instead of rewriting date formatting each time.

echo-now

Echo a stable UTC timestamp and ISO date string.

When to use

  • A log entry, note, or manifest needs a UTC timestamp.
  • A file name needs a date prefix (YYYY-MM-DD).
  • Avoid re-deriving date formatting in shell each time.

Prerequisites

  • POSIX date available on PATH.

Run

scripts/echo_now.sh

Output shape

Two lines:

utc=<YYYY-MM-DDTHH:MM:SSZ>
date=<YYYY-MM-DD>

Use the utc= value for event timestamps and the date= value for date-only prefixes.