diff --git a/src/time/mod.rs b/src/time/mod.rs index bb32ca0..ab1ce5a 100644 --- a/src/time/mod.rs +++ b/src/time/mod.rs @@ -402,6 +402,14 @@ impl Add for UnixTimestamp { } } +impl Add for &UnixTimestamp { + type Output = UnixTimestamp; + + fn add(self, duration: Duration) -> Self::Output { + get_new_stamp_after_addition(self, duration) + } +} + #[cfg(all(test, feature = "std"))] mod tests { use super::*;