pub fn encode(timeseconds: f64, precision: usize) -> Result<String, String>
Expand description
Encode time in seconds to a timehash string with a given precision.
§Examples
use timeharsh::timehash;
assert_eq!(timehash::encode(1236532473.6328125, 6).unwrap(), "abcdef");