Converts index values of a series to date time values.
IDXTODT(series, idx)
series |
- |
An input series |
idx |
- |
An integer or a series of integers. The indices ranging from SPL_START_INDEX (usually 1) to length(s). |
A series of date time values.
W1: gnorm(10, 1);setdate(w0, "1-1-2030");settime(w0, "12:00:00")
W2: getdt(w1)
W3: idxtodt(w1, 1..10)
W2 returns the date/time values of W1.
W3 returns the same values using the indices 1..10.
W1: gnorm(10, 1);setdate(w0, "1-1-2030");settime(w0, "12:00:00")
W2: idxtodt(w1, {1, 5, 10})
W3: dttoidx(w1, w2)
W2 returns the date/time values of W1 using the indices {1, 5, 10}.
W3 returns the indices {1, 5, 10} from the date/time values in W1.
IDXTODT converts the indices of an input series to the equivalent date/time values based on the start date and start time of the series.
See DTTOIDX to convert date/time values of a series to indices.
See XTODT to convert X values to date time values.