Sha256: 9eda7e9a4cc830f09c06cdaf70026cc95ca55248260a335e1fced68f381bbdfc
Contents?: true
Size: 552 Bytes
Versions: 19
Compression:
Stored size: 552 Bytes
Contents
#[path = "Windows.rs"] #[allow(missing_debug_implementations, clippy::undocumented_unsafe_blocks)] mod windows; use windows::Globalization::Calendar; impl From<windows_core::Error> for crate::GetTimezoneError { fn from(orig: windows_core::Error) -> Self { crate::GetTimezoneError::IoError(std::io::Error::new(std::io::ErrorKind::Other, orig)) } } pub(crate) fn get_timezone_inner() -> Result<String, crate::GetTimezoneError> { let cal = Calendar::new()?; let tz_hstring = cal.GetTimeZone()?; Ok(tz_hstring.to_string()) }
Version data entries
19 entries across 19 versions & 1 rubygems