GetTimeByTime - method of object tvPoints


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".

GetTimeByTime(vTime As Variant, nStyle As Variant, nCount As Long) As Variant
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 vTime
1 - the point whose time is greater or equal vTime
2 - the point that is the closest to the vTime time
nCount(Long) The number of the time values of the found data points.
1 - one time value of the first point
>1 - nCount time values in the array (not implemented in javascript)
Return Values:
The method returns the time (the time array) of the found point or Empty if no point has been found.
Time has to be entered in the "local time" (the "standard time" in the standard season and the "daylight-saving time" in the daylight-saving season.):
oTView.TimeSetType = 1
t = oPoints.GetTimeByTime(vTime, 0, 1) 'vTime is "local time"
Time has to be entered as the "standard time" even in the daylight-saving season:
oTView.TimeSetType = 2
t = oPoints.GetTimeByTime(vTime, 0, 1) 'vTime is "standard time"
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice