Opc.Ua.Server.AggregateCalculator.HasEndTimePassed C# (CSharp) Method

HasEndTimePassed() public method

Returns true if the specified time is later than the end of the current interval.
Return true if time flows forward and the time is later than the end time.
public HasEndTimePassed ( System.DateTime currentTime ) : bool
currentTime System.DateTime
return bool
        public bool HasEndTimePassed(DateTime currentTime)
        {
            if (CurrentSlice == null)
            {
                return false;
            }

            if (TimeFlowsBackward)
            {
                return CurrentSlice.EndTime >= currentTime;
            }

            return CurrentSlice.EndTime <= currentTime;
        }
        #endregion