Restaurants open now
Store each restaurant's hours as Timehash keys, then query with the current local time.
Hierarchical time indexing
Unofficial demo for the open-source Timehash project. Timehash is copyright NAVER Corp. and licensed under Apache-2.0.
Enter a document time range and a query time to generate the index keys stored on a document and the query keys used at search time.
Examples
Store each restaurant's hours as Timehash keys, then query with the current local time.
Represent bookable windows compactly while keeping exact time matching semantics.
Filter schedules, teams, or resources without expanding every covered minute.
Learn
Timehash recursively chooses the largest bucket that fits inside the range. Boundaries are refined with smaller buckets.
A query time creates one key per hierarchy level, from coarse buckets to exact minute-level buckets.
A document matches when any query key appears in the document's index keys, giving zero false positives and zero false negatives.
Source
Package registry distribution is not assumed here. Use the source implementations in the repository until packages are published.
javascript/timehash.js
python/timehash.py
go/timehash.go
rust/src/lib.rs