LogoWanyu Space
  • Features
  • Pricing
  • Blog
  • Docs

时间戳转换

时间戳与日期时间相互转换

当前时间
Unix 时间戳 (秒)
1795774225
Unix 时间戳 (毫秒)
1795774225422
本地时间2026/11/27 10:10:25
时间戳 → 日期时间
输入 Unix 时间戳转换为日期时间

支持秒或毫秒

日期时间 → 时间戳
输入日期时间转换为 Unix 时间戳
关于 Unix 时间戳

Unix 时间戳(Unix timestamp)是一种时间表示方式,定义为从格林威治时间 1970年01月01日00时00分00秒起至现在的总秒数。

常见格式:

  • 秒级时间戳: 10 位数字,例如: 1609459200
  • 毫秒级时间戳: 13 位数字,例如: 1609459200000
  • JavaScript 使用毫秒级时间戳
  • Python/PHP 等通常使用秒级时间戳

常见用途:

  • 数据库时间存储
  • API 接口时间参数
  • 日志时间记录
  • 缓存过期时间
LogoWanyu Space

Wanyu Space - Making development more efficient

GitHubGitHubTwitterX (Twitter)BlueskyBlueskyMastodonDiscordYouTubeYouTubeLinkedInEmail
Built withWanyu Space LogoWanyu Space
Product
  • Features
  • Pricing
  • FAQ
Resources
  • Blog
  • Documentation
  • Changelog
  • Roadmap
Company
  • About
  • Contact
  • Waitlist
Legal
  • Cookie Policy
  • Privacy Policy
  • Terms of Service
© 2026 Wanyu Space All Rights Reserved.
备案图标冀公网安备13073202201915号