Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2024 (4)
20082026
  1. …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.
  2. 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! ;-)
  3. 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.
  4. ▲ 83
    Show HN: tu – Convert natural language date/time to UTC
    story by adius · 2024-04-12 · 45 comments