← 返回工具列表

时间戳转换

时间戳与日期时间互相转换,支持多种格式

当前时间戳
-
当前日期时间
-
时区
-
时间戳 → 日期时间
日期时间 → 时间戳
时间戳是从1970-01-01 00:00:00 UTC到现在的秒数
常用时间戳:现在(${Math.floor(Date.now()/1000)}) | 今天0点(${Math.floor(new Date().setHours(0,0,0,0)/1000)}) | 2024-01-01(${Math.floor(new Date('2024-01-01').getTime()/1000)})
正在转换...