Function timeharsh::timehash::before

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

Return the timehash for the preceding time-window.

§Examples

use timeharsh::timehash;
assert_eq!(timehash::before("abcdef").unwrap(), "abcdee");