diff options
Diffstat (limited to 'src/timestamp.rs')
| -rw-r--r-- | src/timestamp.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timestamp.rs b/src/timestamp.rs index 645fb0d..86dfa2a 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -17,3 +17,10 @@ impl Sub<i64> for Timestamp { Self(self.0 - other) } } + +impl Sub<Self> for Timestamp { + type Output = i64; + fn sub(self, other: Self) -> i64 { + self.0 - other.0 + } +} |
