时间戳与日期时间互相转换,支持多种格式
常用时间戳:现在(${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)})
格式示例:2024-01-01 | 2024-01-01 12:00:00 | 2024/01/01 | Jan 1, 2024 | 1 hour ago | tomorrow
Copyright ApiSrv.Com © 2026 成都瑞祥共创科技有限公司 蜀ICP备17008852号-3