/// <summary> /// 时段中是否包含某个时段 /// </summary> /// <param name="span">时段</param> /// <returns>是否在其中</returns> public bool Contains(GnssTimeSpan span) { return((_end.CompareTo(span.End) >= 0) && (_start.CompareTo(span.Start) <= 0)); }
/// <summary> /// 时段中是否包含某个时刻 /// </summary> /// <param name="time">时刻</param> /// <returns>是否在其中</returns> public bool Contains(GnssTime time) { return((time.CompareTo(_end) <= 0) && (time.CompareTo(_start) >= 0)); }