//# __________ PROTOCOL :: INSTANCE CREATION __________ #// public static JwDateInterval CreateDateInterval(JwDate start, JwDate end) { JwDateInterval di; di = new JwDateInterval(); di.Start = start; di.End = end; return di; }
public bool intersects(JwDateInterval di) { if ( di == null ) return false; if ( Contains(di.Start) ) return true; if ( Contains(di.End) ) return true; if ( di.Contains(Start) ) return true; return false; }
public bool ContainsInclusive(JwDateInterval di) { if ( di == null ) return false; return ContainsInclusive(di.Start) && ContainsInclusive(di.End); }
//# __________ PROTOCOL :: COPY __________ #// public JwDateInterval GetDateIntervalCopy() { JwDateInterval e; e = new JwDateInterval(); if ( HasStart() ) e.Start = Start.GetDateCopy(); if ( HasEnd() ) e.End = End.GetDateCopy(); return e; }
public bool Contains(JwDateInterval di) { return ContainsInclusive(di); }