mirror of
https://git.proxmox.com/git/rustc
synced 2025-11-07 11:17:46 +00:00
10 lines
340 B
Rust
10 lines
340 B
Rust
/// Prints the current time zone, e.g. "Europe/Paris".
|
|
|
|
use android_system_properties::AndroidSystemProperties;
|
|
|
|
fn main() {
|
|
let android_system_properties = AndroidSystemProperties::new();
|
|
let tz = android_system_properties.get("persist.sys.timezone");
|
|
println!("Your time zone is: {}", tz.as_deref().unwrap_or("<unknown>"));
|
|
}
|