- première page
- Liste de blogs
- Article détaillé
时间戳转换工具:本地时间与全球时区对照
幻
幻影游侠
date tool
timestamp
time convert
2025-09-17

Articles récents
partager:
本地时间戳转换成各国时间

什么是时间戳?
时间戳是从1970年1月1日00:00:00 UTC开始的秒数或毫秒数。10位数字是秒级时间戳,13位数字是毫秒级时间戳。
如何转换本地时间戳
-
北京时间 (UTC+8)
- 中国不使用夏令时
- 转换公式:本地时间戳 + (8×3600)秒
-
纽约时间 (UTC-5/-4)
- 夏令时期间(3月-11月)使用UTC-4
- 非夏令时使用UTC-5
-
伦敦时间 (UTC+0/+1)
- 夏令时(3月-10月)使用UTC+1
- 标准时间使用UTC+0
-
东京时间 (UTC+9)
- 日本不使用夏令时
- 固定比UTC快9小时
-
悉尼时间 (UTC+10/+11)
- 夏令时(10月-4月)使用UTC+11
- 标准时间使用UTC+10
实用转换工具
- 在线工具:timeanddate.com/worldclock/converter.html
- 命令行:
date -d @时间戳 - Python代码:
import datetime datetime.datetime.fromtimestamp(时间戳).strftime('%Y-%m-%d %H:%M:%S')
常见问题
- 为什么不同工具结果有差异?
- 可能是时区数据库版本不同
- 如何确保准确性?
- 使用权威时区数据库
- 测试已知时间点的转换
记住:存储时间用UTC,显示时间再转换到当地时区。



