Opc.Ua.Server.AggregateCalculator.HasEndTimePassed C# (CSharp) 메소드

HasEndTimePassed() 공개 메소드

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

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

            return CurrentSlice.EndTime <= currentTime;
        }
        #endregion