ms-converter 0.4.2

Fast converter various time formats into milliseconds.
Documentation

MS library

Rust

Fast converter various time formats into milliseconds. Like are 1d to 86400000

Getting Started

Usage

Add this to your Cargo.toml:

[dependencies]
ms-converter = "0.4"

Example

use crate::ms_converter::ms;

let value = ms("1d").unwrap();
assert_eq!(value, 86400000_f64)

Performance

You can check performance diff between ms_converter and ms libraries here.

Running the tests

Unit tests

cargo test

Coding style tests

Running code style tests

cargo fmt --all -- --check

Contributing

Just create pr or issue. You welcome.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Mikhail Panfilov - Initial work - Mnwa

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details