Exemple #1
0
 public bool IsOverlapping(Timespan timespan)
 {
     if ((this.start > timespan.start && timespan.start < this.end) || (this.start < timespan.end && timespan.end < this.end))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 public bool Includes(Timespan timespan)
 {
     if (this.start <= timespan.start && this.end >= timespan.end)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
 public bool Includes(Timespan timespan)
 {
     if (this.start <= timespan.start && this.end >= timespan.end)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Exemple #4
0
 public bool IsOverlapping(Timespan timespan)
 {
     if ((this.start > timespan.start && timespan.start < this.end) || (this.start < timespan.end && timespan.end < this.end))
     {
         return true;
     }
     else
     {
         return false;
     }
     
 }
 public TimespanValue(Timespan timespan, double value)
   : this()
 {
   this.startTime = timespan.Start;
   this.endTime = timespan.End;
   this.val = value;
 }