ad-si/tu
View on GitHub ↗ ★ 261 Rust
CLI tool to convert a natural language date/time string to UTC
4 mentions on Hacker News by 3 people: 1 story, 3 comments · first 2024-04-12 · latest 2024-04-12
20082026
-
…made. Uses a hand rolled parser with no formal grammar. Special case logic is not documented, e.g. https://github.com/ad-si/tu/blob/main/src/chrono_english/par... But I guess it solved the author's problem and we can't argue with that.
comment by RadiozRadioz · 2024-04-12 · in Show HN: tu – Convert natural language date/time to UTC -
Thanks for the good suggestions! I added tracking issues at https://github.com/ad-si/tu/issues . I'd be very happy about a PR! ;-)
comment by adius · 2024-04-12 · in Show HN: tu – Convert natural language date/time to UTC -
https://github.com/ad-si/tu/blob/main/src/main.rs#L37 I'll definitely be using this but I'd suggest replacing print with println.
comment by axegon_ · 2024-04-12 · in Show HN: tu – Convert natural language date/time to UTC