#intervals #reliable #data #timekeeping #set #built #api

timekeep-rs

A Rust library for efficient and reliable timekeeping functionalities, providing data structures and methods for creating, manipulating, and performing set operations on intervals

1 unstable release

0.1.0 Feb 22, 2025

#603 in Data structures

Download history 112/week @ 2025-02-19 24/week @ 2025-02-26

136 downloads per month

MIT license

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].

No runtime deps