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 = crate::ffi::g_time_zone_adjust_time( |
11 | self.to_glib_none().0, |
12 | type_.into_glib(), |
13 | &mut time, |
14 | ); |
15 | (res, time) |
16 | } |
17 | } |
18 | } |
19 |