1 | // Take a look at the license at the top of the repository in the LICENSE file. |
---|---|
2 | |
3 | use crate::translate::*; |
4 | use crate::{TimeType, TimeZone}; |
5 | |
6 | impl TimeZone { |
7 | #[doc(alias = "g_time_zone_adjust_time")] |
8 | pub fn adjust_time(&self, type_: TimeType, mut time: i64) -> (i32, i64) { |
9 | unsafe { |
10 | let res: i32 = |
11 | ffi::g_time_zone_adjust_time(self.to_glib_none().0, type_:type_.into_glib(), &mut time); |
12 | (res, time) |
13 | } |
14 | } |
15 | } |
16 |