public TimeInterval(DateTime startTime, DateTime endTime)
 {
     StartTime = new TimeInstant(startTime);
     EndTime   = new TimeInstant(endTime);
 }
 public TimeInterval()
 {
     StartTime = new TimeInstant();
     EndTime   = new TimeInstant();
 }