# TotalMilliseconds

| **Name**                 | ***Proper***                                                                                 |
| ------------------------ | -------------------------------------------------------------------------------------------- |
| Applicable To (DataType) | TimeSpan                                                                                     |
| Purpose                  | To return a real number representing total number of milliseconds in the specified timespan. |
| Description              | Returns a real number representing total number of milliseconds in the specified timespan.   |
| Return Type              | Double                                                                                       |
| Syntax                   | timeSpan \[System.TimeSpan] – TimeSpan for which the number of milliseconds will be returned |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FIYufjprbiSYgkbXoc3Qe%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 (Format: dd:hh:mm:ss)

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

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

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