cn-timestamp-converter

Unix时间戳与日期互转工具。支持秒/毫秒级时间戳、多时区转换、批量处理、相对时间计算。纯Python标准库,无需API Key。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cn-timestamp-converter" with this command: npx skills add freedompixels/cn-timestamp-converter

cn-timestamp-converter

Unix时间戳与日期互转。开发调试必备。

功能

  • 时间戳→日期:将Unix时间戳转为可读日期
  • 日期→时间戳:将日期字符串转为时间戳
  • 秒/毫秒自动识别:10位秒级 vs 13位毫秒级
  • 时区支持:UTC/Asia-Shanghai等常用时区
  • 当前时间戳:快速获取当前时间戳
  • 相对时间:「3小时后」「明天」等自然语言

安装要求

  • Python 3.6+
  • 无外部依赖

使用方法

# 时间戳转日期
python3 scripts/timestamp_converter.py "1745800000"

# 日期转时间戳
python3 scripts/timestamp_converter.py "2026-04-29 12:00:00"

# 当前时间戳
python3 scripts/timestamp_converter.py "now"

示例

输入:1745800000 输出:2025-04-28 07:46:40 (UTC) / 2025-04-28 15:46:40 (CST)

分类

开发工具

关键词

时间戳, timestamp, 日期转换, 时区, datetime

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

URL解析工具

URL解析工具。分解URL各部分(协议、域名、路径、查询参数),支持参数提取、URL构建、批量解析。纯Python标准库,无需API Key。

Registry SourceRecently Updated
00Profile unavailable
Coding

随机选择器

随机选择器。从列表中随机抽取,支持权重分配、去重模式、抽奖/抽签场景。纯Python标准库,无需API Key。

Registry SourceRecently Updated
00Profile unavailable
Coding

Hex编码解码工具

Hex十六进制编码解码工具。文本与十六进制互转,支持批量处理、颜色码解析,常用于调试和逆向工程。纯Python标准库,无需API Key。

Registry SourceRecently Updated
00Profile unavailable
Coding

Find Skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express...

Registry SourceRecently Updated
2310Profile unavailable