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

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

**Example**

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

Where,

*ticks* = 9749240000000

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/hP1nH2JyUYNPq43HaPtn/1.png)

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.

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