Registry / Library

library · v0.1.0
CivilOffset
Convert a local tick to a candidate UTC tick for a supplied offset.
Use CivilOffset
use vendor::civiloffset::civiloffset;
Run the example
nest demo civiloffset@0.1.0
blyxc native-run civiloffset-demo/main.blyx
Example source and expected output
use vendor::civiloffset::civiloffset;
fn main() {
let local = 7200.0;
let offset = 3600.0;
let result = civiloffset_candidate(local, offset);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
3600
3600
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | b2b3910091 | e4dccdbe2bd986050db43930172cba2851552c6c51d084342cd2da23300af6bb |