Example #1
0
 public SimpleTimeInterval(ITimePoint timeCoordinate, IDuration duration)
 {
     TimePosition  = timeCoordinate;
     TimeSpanValue = duration.AsTimeSpan();
 }
 public SimpleTimeInterval(ITimePoint timeCoordinate, IDuration duration)
 {
     TimePosition = timeCoordinate;
     TimeSpanValue = duration.AsTimeSpan();
 }
Example #3
0
 /// <summary>True if <paramref name="me"/> has the exact same length in time as <paramref name="other"/></summary>
 public static bool HasDurationEqualTo(this IDuration me, IDuration other)
 {
     return(me.AsTimeSpan() == other.AsTimeSpan());
 }