VALID_TIME
Use the VALID_TIME script function to verify whether a specified time is valid.
Syntax
VALID_TIME ([Time Format;]Time)
Parameters
| Parameter | Description | Format |
|---|---|---|
| Time |
Time in HHMMSS format. (Optional) You can specify a custom time format: enter the desired time format, followed by a separator (: or ;) and the time. |
Script literal or script variable |
Return Codes
-
Y — The time is valid
-
N — The time is not valid
Examples
The following example checks whether the specified time is valid. The result (N) is output in the activation report.
: SET &RET# = VALID_TIME ("HH:MM:SS;24:00:00" )
: PRINT &RET#
The second example gives a positive result (Y).
: SET &RET# = VALID_TIME ("HH:MM:SS;00:00:00" )
: PRINT &RET#
See also: