The timespan object represents a period of time or duration, and includes properties and functions to extract numbers, and functions to convert to a string representation. Note that the formatting output is based on the regional settings of the server or agent where the expression is evaluated.
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Format | Formats a timespan value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") | |
FullAbreviatedText | |||||
Hours | |||||
LongText | |||||
Milliseconds | |||||
Minutes | |||||
Seconds | |||||
ShortAbbreviatedText | |||||
ShortText | |||||
ShortTextPadding | |||||
Text | |||||
TotalHours | |||||
TotalMilliseconds | |||||
TotalMinutes | |||||
TotalSeconds | |||||