# TimeSpanFromTicks

| **Name**                 | ***Proper***                                                                          |
| ------------------------ | ------------------------------------------------------------------------------------- |
| Applicable To (DataType) | Int64                                                                                 |
| Purpose                  | To convert ticks into a TimeSpan                                                      |
| Description              | Returns the converted timeSpan using the ticks.                                       |
| Return Type              | TimeSpan                                                                              |
| Syntax                   | timeSpan \[System.TimeSpan] – TimeSpan for which the number of ticks will be returned |

![](/files/MJvaSnj6m9CGmXR6g4G2)

**Example**

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

Where,

*ticks* = 9749240000000

![](/files/HwFMGkis9V9t4iiIvOkD)

In the output window, you can see that the Integer value indicating *Ticks* has been converted into a TimeSpan value, present in the *timespan* value.

![](/files/CV3autYe8587gOZTBHlr)


---

# 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/timespanfromticks.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.
