ISRT

Purpose:

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

Syntax:

ISRT(val)

val

-

A series, scalar or string value to test.

Returns:

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

Example:

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

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

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

 

isrt(s1) == 1

isrt(s2) == 1

isrt(s3) == 0

 

Both "time" and "real time" are considered real time units such that the actual clock time is displayed on the X axis, but "seconds" is not considered a real time unit.

Example:

isrt(3)

 

returns 0.

Remarks:

A series with "Real Time" or "Time" X units displays tic values in terms of actual clock time. The starting date and time is determined by the series start date and start time. "Real Time" displays clock time with fractional seconds values.

 

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

 

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

See Also:

ISARRAY

ISDT

SETDATE

SETHUNITS

SETTIME

UNITS