Script Function: Checks if a time is valid
VALID_TIME(Time)
Syntax |
Description/Format |
---|---|
Time |
Indication of a time in the format "HHMMSS". Format: script literal or script variable It is also possible to specify a different time format. Do so by entering the required time format, then enter a separator (;) and afterwards the time. Indicating a time format is optional. |
Return codes |
---|
"Y" - Time is valid |
Optionally, you may specify a particular Date Format. The default Date Formats to be used are "YYMMDD" or "YYYYMMDD".You may only use a semicolon as a separator between Time Format and Time.
The example checks if the specified time is valid. The result (N) is output in the activation protocol.
: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:
Script element | Description |
---|---|
Checks whether or not a date is included in a calendar keyword |
|
Checks if the date is valid. |
Script Elements - Date and Time
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function