Module timeharsh::timehash

source ·

Structs§

Functions§

  • Return the timehash for the succeeding time-window.
  • Return the timehash for the preceding time-window.
  • Decode timehash, returning a single floating point value for epoch seconds.
  • Decode timehash, returning a tuple of floating point value for epoch seconds and the plus/minus error for epoch seconds. Returns a tuple of (epoch_seconds, error_margin).
  • Encode time in seconds to a timehash string with a given precision.
  • Return the timehashes for the preceding and succeeding time-windows, including the timehash for the current time-window.
  • get_char 🔒
    Look up the base32 character corresponding to an ordinal value
  • Look up the neighboring base32 characters for a given character
  • Look up the ordinal value for a base32 character
  • Return the timehashes for the preceding and succeeding time-windows, excluding the timehash for the current time-window.