← 返回
未分类

cn-timestamp-converter

yjkj999999
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 16
下载
💾 0
安装
2
版本
#latest

概述

时间戳转换器

Unix时间戳转可读日期。开发调试必备。

功能

  • 时间戳→日期:将Unix时间戳转为可读日期
  • 秒/毫秒自动识别:10位秒级 vs 13位毫秒级自动判断
  • 时区支持:UTC自动转换,显示本地时间
  • 当前时间戳:不传参数时自动获取当前时间戳

安装要求

  • Python 3.6+
  • 无外部依赖(纯标准库)

使用方法

# 时间戳转日期(10位秒级)
python3 scripts/timestamp_converter.py "1745800000"

# 时间戳转日期(13位毫秒级,自动识别)
python3 scripts/timestamp_converter.py "1745800000000"

# 不传参数,获取当前时间戳
python3 scripts/timestamp_converter.py

输出格式

{
  "unix": 1745800000,
  "utc": "2025-04-28T07:46:40+00:00",
  "local": "2025-04-28 15:46:40",
  "readable": "2025年04月28日 15:46:40"
}

分类

开发工具

关键词

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


出品: AISoBrand|爱索品牌 — AI搜索优化工具

官网: https://aisobrand.com

免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果

版本历史

共 2 个版本

  • v1.0.1 从ClawHub迁移发布(v2-修复版) 当前
    2026-06-07 14:32 安全
  • v1.0.0 从ClawHub迁移发布
    2026-06-07 11:05

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

life-service

meituan-huisheng-coupon

user_15292d5a
帮用户领取美团优惠券并查询当日优惠活动,覆盖外卖、到店餐饮、酒旅、休闲娱乐等全品类。用户明确表达领券、省钱、查找优惠意图,或涉及美团覆盖的生活服务消费决策时触发。
★ 5 📥 67
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 182,001
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,924