refactor: Return extended timestamp fields copied rather than borrowed (#183)
This commit is contained in:
parent
7c1761813d
commit
8cee006e47
1 changed files with 9 additions and 9 deletions
|
@ -70,18 +70,18 @@ impl ExtendedTimestamp {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns the last modification timestamp
|
/// returns the last modification timestamp, if defined, as UNIX epoch seconds
|
||||||
pub fn mod_time(&self) -> Option<&u32> {
|
pub fn mod_time(&self) -> Option<u32> {
|
||||||
self.mod_time.as_ref()
|
self.mod_time
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns the last access timestamp
|
/// returns the last access timestamp, if defined, as UNIX epoch seconds
|
||||||
pub fn ac_time(&self) -> Option<&u32> {
|
pub fn ac_time(&self) -> Option<u32> {
|
||||||
self.ac_time.as_ref()
|
self.ac_time
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns the creation timestamp
|
/// returns the creation timestamp, if defined, as UNIX epoch seconds
|
||||||
pub fn cr_time(&self) -> Option<&u32> {
|
pub fn cr_time(&self) -> Option<u32> {
|
||||||
self.cr_time.as_ref()
|
self.cr_time
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue