The ts_cal_range_index() function
The ts_cal_range_index() function returns a list containing a specified number of time stamps starting at a given time stamp.
Syntax
MI_COLLECTION *
ts_cal_range_index (MI_CONNECTION, *conn,
mi_string *cal_name,
mi_datetime *begin_stamp,
mi_integer num_stamps)
- conn
- A valid DataBlade® API connection.
- cal_name
- The name of the calendar.
- begin_stamp
- The beginning of the range. It must be greater than or equal to the calendar origin.
- num_stamps
- The number of time stamps to return.
Description
This function is useful if you must print out the time stamps of a series of regular time series elements. If the range is known, getting an array of all of the time stamps is more efficient than using ts_time() on each element.
The caller is responsible for freeing the result of this function.
Returns
A list of time stamps.