# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FFBMuUCFTEKC9kT4QJb9n%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fq9Ei3X8RpdotkUqoRfLu%2F1.png?alt=media)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FS2WIFR9R3sYp5Rn6936Z%2F2.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v10/functions/timespan/totalseconds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
