Crate randevu

source ·
Expand description

The official Rust implementation of the RANDEVU algorithm

§Example

use randevu::{rdv, utc_date_with_offset};

fn main() {
    let object = "THE_SIMPSONS";
    let date = utc_date_with_offset(0);
    let rdv = rdv(object, &date);

    println!("Object {} has RDV{} today", object, rdv);
}

Functions§

  • Returns RDV level u32 for an OBJECT &str on a specific DATE &str
  • Returns current UTC DATE String in ISO 8601 format (YYYY-MM-DD), with an OFFSET i64 in days