TotalDays
Name | Proper |
Applicable To (DataType) | TimeSpan |
Purpose | To return a real number representing total number of days in the specified timespan. |
Description | Returns a real number representing the total number of days in the specified timespan. |
Return Type | Double |
Syntax | timeSpan [System.TimeSpan] – TimeSpan for which the number of days will be returned. |
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FBMT1y5KblqOndy1sWKKF%252F0.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=f4fbbd71&sv=1)
Example
In this example, we will pass the required parameter to the function transformation object using a Variables object.
Where,
timeSpan = 20:10:20:30 (Format: dd:hh:mm:ss)
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252F7AMbWrmVOl4OyPFes2rX%252F1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=5b23b0d&sv=1)
In the output window, you can see that the timespan value has been converted into a real value, indicating the total number of days present in the timespan value.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FsEzVKDcWwoFV7lVlwYes%252F2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a1a00484&sv=1)
Last updated