360 Secure SkillHub
360 安全技能中心

echo-now

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

分类:效率
terrycarter1985
terrycarter1985
热度 9.77
最近更新 2026-08-26 05:37:45

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/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.