360 Secure SkillHub
360 安全技能中心

Timestamp Tool

该 Skill 提供命令行工具 timestamp-tool,用于在 Unix 时间戳与人类可读日期时间之间相互转换,支持指定输出格式、转换时区以及用 now 表示当前时间,适用于时间转换与日志处理场景。仓库含 SKILL.md 说明文档与 scripts/timestamp.py 脚本,需在 bash 环境下通过 python3 运行。

分类:效率
dinghaibin
dinghaibin
热度 24.36
最近更新 2026-05-11 17:47:34

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/timestamp-tool
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
timestamp-tool
description
Convert between Unix timestamps and human-readable dates. Use for time conversion, log analysis, and date arithmetic.

Timestamp - Time Conversion Utility

Convert Unix epoch timestamps to human-readable date/time formats and vice versa. Supports multiple timezones and common date formats for log processing.

Usage

timestamp-tool [options] <value>

Options

  • -u: Output as Unix timestamp
  • -f FORMAT: Custom output format
  • -z TIMEZONE: Convert to timezone

Examples

timestamp-tool 1714896000
timestamp-tool -u "2026-05-05 12:00:00"
timestamp-tool -z Asia/Shanghai now