Exemple #1
0
        public TimeInterval CropBy(TimeInterval crop)
        {
            var ret = new TimeInterval();

            // Max between
            ret.start = start > crop.start ? start : crop.start;
            // Min between
            ret.end = end < crop.end ? end : crop.end;

            return ret;
        }
 public void SetDrawInterval(DateTime begin, DateTime end)
 {
     draw_interval = new TimeInterval(begin, end);
 }