Registry / Framework

framework · v0.1.0
Robin
Convert a validated civil date into an ordinal, weekday and comparable day number.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 989352e006 | 0b7a84282da022e760013ce5395353ac8d42e02aca1e9d94bc80c2a71bf0ec64 |