> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# second

> 返回指定日期中的秒部分，取值范围 0 到 59。

获得日期中的秒的信息，返回值范围 0\~59。

参数为 DATE 或 DATETIME 类型。

### Syntax

```Haskell theme={null}
INT SECOND(DATETIME date)
```

## 示例

```Plain Text theme={null}
select second('2018-12-31 23:59:59');
+-----------------------------+
|second('2018-12-31 23:59:59')|
+-----------------------------+
|                          59 |
+-----------------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.