时间戳转换 - Unix 时间戳与日期互转工具
时间戳转换工具用于在 Unix timestamp 和本地日期时间之间快速互转,方便排查接口时间字段、日志时间和数据库记录。It supports seconds, milliseconds, current time, and local timezone display.
常见使用场景
- 把后端返回的时间戳转换为可读日期
- 生成当前秒级或毫秒级时间戳
- 检查本地时区下的时间显示
秒级和毫秒级时间戳有什么区别?
秒级通常是 10 位,毫秒级通常是 13 位。
显示的时间使用什么时区?
页面会使用浏览器当前所在的本地时区。