Xbasic

ISTIME Function

Syntax

Result_Flag as L = IsTime(C Source)

Arguments

Result_Flag

.T. = Indicates that the Time_String can be interpreted as a valid time. .F. = Time_String can not be interpreted as a valid time.

Source

A character representation of a time value.

Description

Returns true is the string value is a valid datetime.

Discussion

The ISTIME() function returns .T. if the Time_String is a valid representation of a time value. Note : A Time value includes a date component.

Example

? istime("10/15/2003 10:00:00 00 am")
= .T.
? istime("10/15/2003")
= .T.
? istime("10:00:00 00 am")
= .F.

See Also