piar_timefilter

This routine calculates the amount of time between the passed start time and end time during which the passed expression is true. The total time is also returned.

C format

int32 piar_timefilter(

int32 starttime,

int32 endtime,

char PIPTR * expression,

int32 PIPTR * tottime,

int32 PIPTR * passtime);

Returns

>0

System error

Success

-1

Start date or end date not on line

-105

Bad time and date

-8xx

Expression parsing error

-9xx

Expression evaluation or network error

 

Arguments

starttime (passed)

Start time for search

endtime (passed)

End time for search

expression (passed)

Expression string

tottime (returned)

End time minus start time in seconds

passtime (returned)

Amount of time expression was true in seconds

Usage Notes

Enabling Operational Intelligence