> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/zh/yu-fa-can-kao/dates/timestamps-and-iso8601.md).

# 时间戳与 ISO8601

### **ISO8601**

[ISO8601](https://en.wikipedia.org/wiki/ISO_8601) 是一个用于格式化日期和时间的国际标准，常被数据库使用。

使用 "作为 iso8601" 转换为此格式：

```
2019年4月1日 3:30pm 作为 iso8601 | 2019-04-01T15:30:00+11:00
```

使用 "到日期" 转换为常规日期格式：

```
2019-04-01T15:30:00 到日期 | 2019年4月1日 15:30
```

### **时间戳**

[Unix time](https://en.wikipedia.org/wiki/Unix_time) 是一种描述时间点的系统，常用于编程。时间戳是从“参考日期”（1970年1月1日）开始经过的秒数。

```
2019年4月1日 作为时间戳 | 1554109200
1559740303.48 到日期    | 2019年6月5日 23:11
```

要获取当前时刻的时间戳，请使用 **当前时间戳**

```
当前时间戳 | 1559740303.48
```

#### **毫秒时间戳**

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

```
1733823083000 到日期 | 2024年12月10日 20:31:23
```
