/// Subtract the provided timestamp from this one and return the result.
Subtract the provided timestamp from this one and return the result.
Subtract the provided timestamp from this one and return the result .
fn sub(self, other: Timestamp) -> Timestamp {
    if other.nanos > self.nanos {
      return Timestamp::new(
        self.seconds - other.seconds - 1,
        self.nanos + 1_000_000_000 - other.nanos,
      );
    }
    Timestamp::new(self.seconds - other.seconds, self.nanos - other.nanos)
  }
fn sub ( self , other : Timestamp ) -> Timestamp { if other . nanos > self . nanos { return Timestamp :: new ( self . seconds - other . seconds - 1 , self . nanos + 1_000_000_000 - other . nanos , ) ; } Timestamp :: new ( self . seconds - other . seconds , self . nanos - other . nanos ) }
Subtract the provided timestamp from this one and return the result.
Subtract the provided timestamp from this one and return the result .
self
other
Timestamp