Registry / Framework

framework · v0.1.0
Blackbird
Resolve a wall-clock timestamp at a known gap or fold without guessing its offset.
Use Blackbird
use vendor::blackbird::blackbird;
Run the example
nest demo blackbird@0.1.0
blyxc native-run blackbird-demo/main.blyx
Example source and expected output
use vendor::blackbird::blackbird;
fn main() {
let local = 11000.0;
let transition = 10000.0;
let before = 3600.0;
let after = 0.0;
let fold = 1.0;
let result = blackbird_resolve(local, transition, before, after, fold);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
2
11000
0
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 30dc805764 | 809349c5490e9f90c42cbbf4bd508462772559ee92cea9bd0a3e26aa0893a41e |