Add filter_datetime module for FilterBar timestamp parsing

Standalone module (no engine/index/filter-grammar deps) that normalizes
relative humantime (5h, -3m), absolute time-of-day (12:00, resolved to
today in UTC), and full date/RFC3339 literals (2024-01-15,
2024-01-15T12:00:00Z) into a single Timestamp, given a passed-in `now`
for testability. Adds humantime and chrono dependencies.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XFUNZwCvz3kcod3352ZR2o
This commit is contained in:
Hugh Kaznowski
2026-09-05 12:42:51 +01:00
co-authored by Claude Sonnet 5
parent 1fb564d06b
commit 0311eeb712
4 changed files with 559 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ mod api;
mod data_value;
mod dto;
mod engine;
mod filter_datetime;
mod index_key;
mod ingest;
mod metric_primitive;