putz u in dhe washing machin and spins ur bsky pofile pictuer !!! :D
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use div_euclid

did:plc:73gqgbnvpx5syidcponjri… 648717e2 e685ca60

verified
+1 -11
+1 -11
src/main.rs
··· 50 50 Err(e) => -((e.duration().as_secs() as i128) * 1000 + e.duration().subsec_millis() as i128), 51 51 }; 52 52 53 - fn floor_div(a: i128, b: i128) -> i128 { 54 - let q = a / b; 55 - let r = a % b; 56 - if r != 0 && ((a < 0) && (b > 0)) { 57 - q - 1 58 - } else { 59 - q 60 - } 61 - } 62 - 63 53 // make sure issa positive. i love spreading positivity everywhere i go!!! :D 64 - let days = floor_div(now_ms, MS_PER_DAY); 54 + let days = (now_ms).div_euclid(MS_PER_DAY); 65 55 let reference_ms = days * MS_PER_DAY; 66 56 67 57 let elapsed = now_ms - reference_ms;