# ToTimeSpan (Milli)

| **Name**                 | ***Proper***                                                                                                                                                                                                                                                                                                           |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable To (DataType) | Int64                                                                                                                                                                                                                                                                                                                  |
| Purpose                  | To return the converted timeSpan.                                                                                                                                                                                                                                                                                      |
| Description              | Converts parameters into TimeSpan                                                                                                                                                                                                                                                                                      |
| Return Type              | TimeSpan                                                                                                                                                                                                                                                                                                               |
| Syntax                   | <p>days \[System.Int64] – Number of days in TimeSpan</p><p>hours \[System.Int64] – Number of hours in TimeSpan</p><p>minutes \[System.Int64] – Number of minutes in TimeSpan</p><p>seconds \[System.Int64] – Number of seconds in TimeSpan</p><p>milliseconds \[System.Int64] – Number of milliseconds in TimeSpan</p> |

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

**Example**

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

Where,

*days* = 10

*hours* = 3

*minutes* = 40

*seconds* = 50

*milliseconds* = 455

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

In the output window, you can see that the integer values have been converted into a TimeSpan value.

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