VALID_TIME
            Script Function: Checks if a time is valid
Syntax
VALID_TIME ([Time Format;]Time)
| 
                         Syntax  | 
                    
                         Description/Format  | 
                
|---|---|
| 
                         Time  | 
                    
                         Time in HHMMSS format Format: script literal or script variable (Optional) You can specify a different time format: enter the desired time format, a separator (: or ;) and the time.  | 
                
| 
                         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.
Examples
The example checks if 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: