时间戳转换工具(Timestamp Converter)
v1.2.4cn-timestamp-tool。使用纯Python标准库,无需API Key。
0· 219·0 当前·0 累计
下载技能包
License
MIT-0
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install cn-timestamp-tool
镜像加速npx clawhub@latest install cn-timestamp-tool --registry https://cn.longxiaskill.com 镜像可用
技能文档
slug: cn-timestamp-tool name: 时间戳转换工具 description: "cn-timestamp-tool。纯Python标准库,无需API Key。" keywords: timestamp, tool version: "1.0.0" author: 千策
时间戳转换工具 纯 Python 标准库实现的时间戳转换工具。
功能
- 时间戳 → 日期时间:将 Unix 时间戳转换为可读日期时间
- 日期时间 → 时间戳:将日期时间转换为 Unix 时间戳
- 当前时间戳:获取当前 Unix 时间戳(秒/毫秒)
- 时区支持:支持不同时区的转换
使用方式
- 当前时间戳(秒)
- 当前时间戳(毫秒)
- 时间戳转日期时间
- 日期时间转时间戳
- 指定格式输出
- 带时区转换
技术说明
- 纯 Python 标准库(datetime、time、argparse、zoneinfo)
- 无外部依赖
- 默认时区 Asia/Shanghai