You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: date.rs
    path of file: ./repos/printpdf/src
    
    the code of the file until where you have to start completion: /// wasm32-unknown-unknown polyfill

#[cfg(all(feature = "js-sys", target_arch = "wasm32", target_os = "un
    
        pub fn offset(&self) -> super::UtcOffset {
            let offset = self.0.get_timezone_offset();
            let truncated_offset = offset as i32;
            let hours = (truncated_offset % 60).try_into().unwrap();
            let minutes = (truncated_offset / 60).try_into().unwrap();
            let seconds = ((offset * 60.) % 60.) as i8;
            super::UtcOffset {
                hours,
                minutes,
                seconds,
            }
        }