embedded-utils

Crates.ioembedded-utils
lib.rsembedded-utils
version0.1.0
sourcesrc
created_at2024-06-02 07:42:36.90941
updated_at2024-06-02 07:42:36.90941
description`embedded-utils` provides some features in Rust(no_std) embedded systems.
homepage
repositoryhttps://github.com/hello-rs/embedded-utils
max_upload_size
id1259046
size22,112
tushantong (tushantong)

documentation

README

embedded-utils

embedded-utils provides some features in Rust(no_std) embedded systems.

Crate Feature Flags

The following crate feature flags are available:

  • time: enable processing time.

Usage

  1. Add the following line to your Cargo.toml:
embedded-utils = { version = "0.1.0" }
  1. Use 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);

License

Licensed under either of

Contribution

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.

Commit count: 5

cargo fmt