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

# SECOND

> SECOND函数用于获取选定时间的秒数，支持在宜搭的多种场景中使用，如表单、流程设计、集成自动化等。该函数格式为SECOND(date)，返回值类型为数字，表示输入时间对应的秒数。

**SECOND**函数用于获取选定时间的秒数。

## 支持产品场景

SECOND函数支持在宜搭的以下场景中使用。

* 表单（主表字段）
* 表单（业务关联规则）
* 表单（校验）
* 流程设计（校验规则）
* 流程设计（关联操作）
* 集成自动化
* 流程-节点
* 连接器

## 格式

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
SECOND(date)
```

## 属性说明

| **属性** | **是否必填** | **说明** |
| ------ | -------- | ------ |
| date   | 是        | 时间对象。  |

## 返回值

| **返回值类型** | **说明**     |
| --------- | ---------- |
| 数字        | 输入时间对应的秒数。 |

## 使用示例

如下图所示，你可以使用`SECOND()`函数获取用户选择时间的秒数。

<Frame>
  ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1703144229856-bbefb1a2-ac18-4532-8acc-1f400e9bdcd6.png)
</Frame>

## 体验

返回某日期的秒数。
