The time object represents a time value and includes properties and functions to extract numbers, and functions to convert to a string representation. Note that the local time value and formatting output is based on the timezone of the server or agent where the expression is evaluated.
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Format | Formats a date or time 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") | |
Hour | |||||
HoursAgo | |||||
Millisecond | |||||
Minute | |||||
MinutesAgo | |||||
Second | |||||
SecondsAgo | |||||
ToLongTimeString | |||||
ToShortTimeString | |||||