Fast converter various time formats into milliseconds.
Like are 1d
to 86400000
Add this to your Cargo.toml:
toml
[dependencies]
ms-converter = "0.5"
```rust use crate::ms_converter::ms;
let value = ms("1d").unwrap(); assert_eq!(value, 86400000) ```
You can check performance diff between ms_converter
and ms
libraries here.
bash
cargo test
Running code style tests
cargo fmt --all -- --check
Just create pr or issue. You welcome.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details