...
Name and Parameters | Description | Return Type | Usage Examples | |
---|---|---|---|---|
Format(string format) | Formats a timespan value using standard or custom .Net formatting strings | String | $Server.Now$Utils.GetTimeSpan("16:32:05.555").Format("hh\:mm"\:ss)$ | "23:55" (given the date time "31/12/2000 23:55:333")16:32:05" |
FullAbbreviatedTextFullAbreviatedText | A full string representation of the timespan using abbreviated unit names | String | $Utils.GetTimeSpan("16:32:05.555").FullAbbreviatedText$ | "16h 32m 5s 555ms" |
Hours | The hours component of the timespan | Integer | $Utils.GetTimeSpan("16:32:05.555").Hours$ | 16 |
LongText | A long string representation of the timespan | String | $Utils.GetTimeSpan("16:32:05.555").LongText$ | "16 hours, 32 minutes" |
Milliseconds | The milliseconds component of the timespan | Integer | $Utils.GetTimeSpan("16:32:05.555").Milliseconds$ | 555 |
Minutes | The minutes component of the timespan | Integer | $Utils.GetTimeSpan("16:32:05.555").Minutes$ | 32 |
Seconds | The seconds component of the timespan | Integer | $Utils.GetTimeSpan("16:32:05.555").Seconds$ | 5 |
ShortAbbreviatedText | A short string representation of the timespan using abbreviated unit names | String | $Utils.GetTimeSpan("16:32:05.555").ShortAbbreviatedText$ | "16h 32m" |
ShortText | A short string representation of the timespan with components separated with colons | String | $Utils.GetTimeSpan("16:32:05.555").ShortText$ | "16:32:5.555" |
ShortTextPaddedShortTextPadding | A short string representation of the timespan with components separated with colons padded with zeros | String | $Utils.GetTimeSpan("16:32:05.555").ShortTextPadded$ | "16:32:05.555" |
Text | A long string representation of the timespan | String | $Utils.GetTimeSpan("16:32:05.555").Text$ | "16 hours, 32 minutes" |
TotalHours | The total value of the timespan expressed as whole and fractional hours | Number | $Utils.GetTimeSpan("16:32:05.555").TotalHours$ | 16.5348763888889 |
TotalMilliseconds | The total value of the timespan expressed as whole and fractional milliseconds | Number | $Utils.GetTimeSpan("16:32:05.555").TotalMilliseconds$ | 59525555 |
TotalMinutes | The total value of the timespan expressed as whole and fractional minutes | Number | $Utils.GetTimeSpan("16:32:05.555").TotalMinutes$ | 992.092583333333 |
TotalSeconds | The total value of the timespan expressed as whole and fractional seconds | Number | $Utils.GetTimeSpan("16:32:05.555").TotalSeconds$ | 59525.555 |