a4e29832190de6d58bd59ccd52289476689cd995
CFTimeZone::name
Add a `name` method to `CFTimeZone` to get the time zone ID (e.g., "America/Los_Angeles") of the current time zone. Core Foundation calls this "name" instead of "id" in its method signatures, but acknowledges it in the closely-related NSTimeZone related docs. Since most of the other methods in this library match closely with CF naming, also use `name` here. > Time zone database entries such as “America/Los_Angeles” are IDs, not > names. An example of a time zone name is “Pacific Daylight Time”. > Although many NSTimeZone symbols include the word “name”, they > actually refer to IDs.
core-foundation-rs
Compatibility
Targets macOS 10.7 by default.
To enable features added in macOS 10.8, set Cargo feature mac_os_10_8_features. To have both 10.8 features and 10.7 compatibility, also set mac_os_10_7_support. Setting both requires weak linkage, which is a nightly-only feature as of Rust 1.19.
For more experimental but more complete, generated bindings take a look at https://github.com/michaelwu/RustKit.
Description
Languages
Rust
100%