glib/
time_zone.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::translate::*;
4use crate::{TimeType, TimeZone};
5
6impl 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 = 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}