VALID_TIME

ScriptEigener Objekttyp in der Automation Engine Function: Checks if a time is valid

Syntax

VALID_TIME(Time)

Syntax

Description/Format

Time


Return codes

"Y" - Time is valid
"N" - Time is invalid

Comments

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 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

VALID_CALE

Checks whether or not a date is included in a calendar keyword

VALID_DATE

Checks if the date is valid.

Script Elements - Date and Time

Date, Time and Period Formats

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function