Searches for the time of the data point (the time array) according to specified parameters.
The vTime time expected according to setting the TrendsView.TimeSetType property, i.e. "local time", "standard time" or "daylight-saving time".
t = oPoints.GetTimeByTime(vTime, nStyle, nCount)
|vTime||(Variant) Time whereby the data points have to be searched|
|nStyle||(Variant) Type of searching the data point|
0 - the point whose time is less or equal the vTime time
1 - the point whose time is greater or equal the vTime time
2 - the point that is the closest to the vTime time
|nCount||(Long) Number of the time values of the found data points|
1 - one time value of the first point
oTView.TimeSetType = 1
t = oPoints.GetTimeByTime(vTime, 0, 1) 'vTime is "local time"
oTView.TimeSetType = 2
t = oPoints.GetTimeByTime(vTime, 0, 1) 'vTime is "standard time"