/// <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); }
public int CompareTo(DroppingTimeSpan other) { CheckZone(other); return(_zero.CompareTo(other._zero)); }
public TimeSpan Subtract(DroppingTimeSpan other) { return(_zero - other._zero); }
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); }
public TimeSpan Add(DroppingTimeSpan other) { return(other.ZeroMoment - _zero); }