Opc.Ua.Server.AggregateCalculator.HasEndTimePassed C# (CSharp) Méthode

HasEndTimePassed() public méthode

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
Résultat bool
        public bool HasEndTimePassed(DateTime currentTime)
        {
            if (CurrentSlice == null)
            {
                return false;
            }

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

            return CurrentSlice.EndTime <= currentTime;
        }
        #endregion