时间戳与 ISO8601

ISO8601

ISO8601arrow-up-right 是一个用于格式化日期和时间的国际标准,常被数据库使用。

使用 "as iso8601" 转换为此格式:

April 1, 2019 3:30pm as iso8601 | 2019-04-01T15:30:00+11:00

使用 "to date" 转换为常规日期格式:

2019-04-01T15:30:00 to date | 1 April 2019 at 3:30 pm

时间戳

Unix timearrow-up-right 是一种描述时间点的系统,常用于编程。时间戳是从“参考日期”(1970年1月1日)开始经过的秒数。

April 1, 2019 to timestamp | 1554109200
1559740303.48 to date      | 5 June 2019 at 11:11 pm

要获取当前时刻的时间戳,请使用 current timestamp

current timestamp | 1559740303.48

毫秒时间戳

您也可以将毫秒时间戳转换为日期

1733823083000 to date | 10 December 2024 at 8:31:23 pm

最后更新于