DADiSP Worksheet Functions > Function Categories > Query Functions > ISDT

 

ISDT

Purpose:

Returns 1 if the input is a series with a date or time X units.

Syntax:

ISDT(val)

val

-

A series, scalar or string value to test.

Returns:

An integer, 1 if the input a series with date/time X units, else 0.

Example:

s1 = grand(100, 1);sethunits("daily");

s2 = grand(100, 1);sethunits("time");

s3 = grand(100, 1);sethunits("seconds");

 

isdt(s1) == 1

isdt(s2) == 1

isdt(s3) == 0

 

Both "daily" and "time" are considered date/time units, but "seconds" is not considered a date/time unit.

Example:

isdt(3)

 

returns 0.

Remarks:

The following units are considered date/time units:

 

Real Time

Time

Daily

Yearly

Monthly

Weekly

Quarterly

Minutely

Business Days

 

A series with date/time X units displays tic values in terms of actual calendar or clock time. The starting date and time is determined by the series start date and start time.

 

See SETDATE and SETTIME to set the series date and time.

 

If the input is not a series, ISDT returns 0.

See Also:

ISARRAY

ISRT

SETDATE

SETHUNITS

SETTIME

UNITS