Function timeharsh::timehash::decode

source ·
pub fn decode(timehash: &str) -> Result<f64, String>
Expand description

Decode timehash, returning a single floating point value for epoch seconds.

§Examples

use timeharsh;
assert_eq!(timeharsh::timehash::decode("abcdef").unwrap(), 1236532473.6328125);