/// <summary>取得重疊日期時間區段</summary> public static DateTimeSection Overlap(this DateTimeSection sectionA, DateTimeSection sectionB) { return(new DateTimeSection { Start = OrionUtils.Max(sectionA.Start, sectionB.Start), End = OrionUtils.Min(sectionA.End, sectionB.End), }); }