diff --git a/git-commit/src/author.rs b/git-commit/src/author.rs index f7fb711..699345e 100644 --- a/git-commit/src/author.rs +++ b/git-commit/src/author.rs @@ -33,6 +33,16 @@ impl Time { pub fn new(seconds: i64, offset: i32) -> Self { Self { seconds, offset } } + + /// Return the time, in seconds, since the epoch. + pub fn seconds(&self) -> i64 { + self.seconds + } + + /// Return the timezone offset, in minutes. + pub fn offset(&self) -> i32 { + self.offset + } } impl From