> ## 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

> The SECOND function returns the seconds of a selected time. It works in multiple YiDA scenarios, including forms, workflow design, and integration & automation. The format is SECOND(date), and it returns a Number representing the seconds of the input time.

The **SECOND** function returns the seconds of a selected time.

## Supported Scenarios

The SECOND function is supported in the following YiDA scenarios.

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (association action)
* Integration & automation
* Workflow node
* Connector

## Format

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

## Attributes

| **Attribute** | **Required** | **Description** |
| ------------- | ------------ | --------------- |
| date          | Yes          | Time object.    |

## Return Value

| **Return type** | **Description**                |
| --------------- | ------------------------------ |
| Number          | The seconds of the input time. |

## Example

As shown below, use the `SECOND()` function to return the seconds of a time selected by the user.

## Try It Out

Returns the seconds of a given date.
