Crates.io | embedded-utils |
lib.rs | embedded-utils |
version | 0.1.0 |
source | src |
created_at | 2024-06-02 07:42:36.90941 |
updated_at | 2024-06-02 07:42:36.90941 |
description | `embedded-utils` provides some features in Rust(no_std) embedded systems. |
homepage | |
repository | https://github.com/hello-rs/embedded-utils |
max_upload_size | |
id | 1259046 |
size | 22,112 |
embedded-utils
provides some features in Rust(no_std) embedded systems.
The following crate feature flags are available:
time
: enable processing time.Cargo.toml
:embedded-utils = { version = "0.1.0" }
time
for processing time.:use embedded_utils::time::{DateTime, TimeZone};
let datetime = DateTime::from_unix_millis(1704067199998, TimeZone::AsiaShanghai);
println!("datetime year is {}", datetime.year);
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.