Skip to content
Snippets Groups Projects
Commit 11e4b10f authored by Hubert Figuiere's avatar Hubert Figuiere
Browse files

Expose timezone info from XmpDateTime

parent 85ec5ba9
No related branches found
No related tags found
Loading
......@@ -171,6 +171,26 @@ impl DateTime {
pub fn nano_second(&self) -> i32 {
self.0.nano_second
}
/// Return if there is a timezone information
pub fn has_tz(&self) -> bool {
self.0.has_tz != 0
}
/// Return the timezone sign
pub fn tz_sign(&self) -> TzSign {
self.0.tz_sign
}
/// Return the timezone offset hours (absolute)
pub fn tz_hours(&self) -> i32 {
self.0.tz_hour
}
/// Return the timezone offset minutes
pub fn tz_minutes(&self) -> i32 {
self.0.tz_minute
}
}
impl From<c::XmpDateTime> for DateTime {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment