# TotalSeconds

| **Name**                 | ***Proper***                                                                            |
| ------------------------ | --------------------------------------------------------------------------------------- |
| Applicable To (DataType) | TimeSpan                                                                                |
| Purpose                  | To return a real number representing total number of seconds in the specified timespan. |
| Description              | Returns a real number representing total number of seconds in the specified timespan.   |
| Return Type              | Double                                                                                  |
| Syntax                   | timeSpan \[System.TimeSpan] – TimeSpan for which the number of seconds will be returned |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/ZZS8z13snEKd4dIoVA0y/0.png)

**Example**

In this example, we will pass the required parameter to the function transformation object using a *Variables* object.

Where,

*timeSpan* = 20.03:04:05

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/zDC5oKNNxi4hufwTmhuO/TotalSeconds.png)

In the output window, you can see that the *timespan* value has been converted into a real value, indicating the number of seconds.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/Lf77to3U5gZwHjHJc6N8/2.png)
