| Crates.io | timekeep-rs |
| lib.rs | timekeep-rs |
| version | 0.1.0 |
| created_at | 2025-02-22 11:30:29.910091+00 |
| updated_at | 2025-02-22 11:30:29.910091+00 |
| description | A Rust library for efficient and reliable timekeeping functionalities, providing data structures and methods for creating, manipulating, and performing set operations on intervals. |
| homepage | https://github.com/mikebrgs/timekeep-rs |
| repository | https://github.com/mikebrgs/timekeep-rs.git |
| max_upload_size | |
| id | 1565326 |
| size | 44,884 |
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].
Add this to your Cargo.toml:
[dependencies]
timekeep-rs = "0.1.0"
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());
}
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any inquiries, please contact Miguel Borges at [miguel.borges@hotmail.com].