Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Robin

Convert a validated civil date into an ordinal, weekday and comparable day number.

Source repository · Package JSON

Use Robin

use vendor::robin::robin;

Run the example

nest demo robin@0.1.0
blyxc native-run robin-demo/main.blyx
Example source and expected output
use vendor::robin::robin;

fn main() {
    let year = 1970.0;
    let month = 1.0;
    let day = 1.0;
    let result = robin_date(year, month, day);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

719163
3
1
31

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIP989352e0060b7a84282da022e760013ce5395353ac8d42e02aca1e9d94bc80c2a71bf0ec64