Fast converter various time formats into milliseconds.
Like are 1d
to 86400000
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
For use this lib you need Rust and Cargo on local machine
Give examples
Add this to your Cargo.toml:
toml
[dependencies]
ms-converter = "0.4"
```rust use crate::ms_converter::ms;
let value = ms("1d").unwrap(); asserteq!(value, 86400000f64) ```
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