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:
co-authored by
Claude Sonnet 5
parent
1fb564d06b
commit
0311eeb712
@@ -10,3 +10,5 @@ tower-http = { version = "0.6", features = ["fs", "cors"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
chrono = "0.4"
|
||||
humantime = "2"
|
||||
|
||||
Reference in New Issue
Block a user