1 unstable release
0.1.0 | Feb 22, 2025 |
---|
#603 in Data structures
136 downloads per month
44KB
566 lines
Timekeep-rs
Timekeep-rs is a Rust library designed to provide efficient and reliable timekeeping functionalities. This library is built to be simple and is inspired in the portion library in Python https://github.com/AlexandreDecan/portion.
Features
- Easy to use API
- Lightweight
- No dependencies
Installation
Add this to your Cargo.toml
:
[dependencies]
timekeep-rs = "0.1.0"
Usage
Here is a simple example to get you started:
use timekeep_rs::{AtomicInterval, IntervalSet};
fn main() {
let atomic_interval = AtomicInterval::closed(1, 5);
let interval = IntervalSet::from(atomic_interval);
println!("Interval: {}", interval.to_string());
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Contact
For any inquiries, please contact Miguel Borges at [miguel.borges@hotmail.com].