TimeValue function
Syntax
TimeValue(time_str)
Description
Use the TimeValue function to calculate a Time value based on an input string. This function can be used to assign a value to a Time variable or field using a string constant, since a Time value cannot be represented with a constant.
Parameters
| Parameter | Description |
|---|---|
|
time_str |
A string representing the time. It can either be in the form HH:MM:SS.SSSSSS, based on a 24-hour clock, or in the form HH:MM:SS indicator, where indicator is either AM or PM. |
Returns
Returns a Time value based on time_str.
Example
The example sets &START_TIME to 12.13.00.000000:
&START_TIME = TimeValue("12:13:00 PM");
Related Topics