Converts X values of a series to date time values.
XTODT(series, idx, limit)
series |
- |
An input series |
||||
idx |
- |
An integer or a series of integers. The indices ranging from SPL_START_INDEX (usually 1) to length(s). |
||||
limit |
- |
Optional. An integer, limit result to the existing date/time range.
|
A series of X values.
W1: gnorm(10, 1);setdate(w0, "1-1-2030");settime(w0, "12:00:00")
W2: getdt(w1)
W3: xtodt(w1, xvals(w1))
W4: w3 == w2
W2 returns the date/time values of W1.
W3 returns the same values using the X values of W1.
W4 is all ones, indicating the date time values in W2 and W3 are identical.
W1: gnorm(10, 1);setdate(w0, "1-1-2030");settime(w0, "12:00:00")
W2: xtodt(w1, {0, 4, 9});table
W3: dttox(w1, w2)
W2 returns the date/time values of W1 using the X values {0, 4, 9}.
W3 returns the X values {0, 4, 9} from the date/time values in W1.
XTODT converts the X values of an input series to the equivalent date/time values based on the start date and start time of the series.
See DTTOX to convert date/time values of a series to X values.