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

**Example**

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

Where,

*ticks* = 9749240000000

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

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