/// <summary>
 /// Adds DroppingTimeSpan to the FloatingDateTime. The result is a stationary DateTime since the floating component of both inputs is cancelled out.
 /// </summary>
 /// <param name="timespan">DroppingTimeSpan to add to the FloatingDateTime.</param>
 /// <returns>Point in time equal to adding Snapshot properties of both inputs.</returns>
 public DateTime Add(DroppingTimeSpan timespan)
 {
     CheckZone(timespan);
     return(timespan.ZeroMoment + _delta);
 }
Beispiel #2
0
 public int CompareTo(DroppingTimeSpan other)
 {
     CheckZone(other);
     return(_zero.CompareTo(other._zero));
 }
Beispiel #3
0
 public TimeSpan Subtract(DroppingTimeSpan other)
 {
     return(_zero - other._zero);
 }
Beispiel #4
0
 public bool Equals(DroppingTimeSpan other)
 {
     return(_zone == other._zone && _zero == other._zero);
 }
 public TimeSpan Subtract(DroppingTimeSpan other)
 {
     return _zero - other._zero;
 }
 public bool Equals(DroppingTimeSpan other)
 {
     return _zone == other._zone && _zero == other._zero;
 }
 public int CompareTo(DroppingTimeSpan other)
 {
     CheckZone(other);
     return _zero.CompareTo(other._zero);
 }
Beispiel #8
0
 public TimeSpan Add(DroppingTimeSpan other)
 {
     return(other.ZeroMoment - _zero);
 }