5 releases
Uses new Rust 2024
| 0.1.4 | Jun 4, 2026 |
|---|---|
| 0.1.3 | Aug 29, 2025 |
| 0.1.2 | Aug 29, 2025 |
| 0.1.1 | Aug 29, 2025 |
| 0.1.0 | Aug 29, 2025 |
#75 in #cli-parser
15KB
188 lines
wen
Basically when-cli with some quality of life improvements
Differences from when-cli:
- More robust natural language parsing (e.g. "2 minutes from now", "tomorrow at 3am", "in 5 hours and 20 minutes", "5 minutes ago", "next thursday at 2:32am")
- English number words (e.g. "one week from now", "twenty minutes from now")
- Unix timestamp input support (e.g.
wen 1756486501) - Unix timestamp output (
--unix) - No need for quotes (
wen tomorrow at 3pm)
Install:
cargo install wen
Options:
--unixto output just unix timestamp--utcto use the UTC timezone--tz <iana timezone>to specify an IANA timezone (e.g. "America/New_York")
Examples:
Any of the following can be combined with --unix, --utc, or --tz:
wen nowwen 2:15pmwen tomorrow at noonwen tonight at midnightwen August 29th at 8pmwen July 4th 1776wen 3:03am on September 29thwen on Sundaywen in 24 hourswen 5 minutes agowen yesterday at 3pmwen 2:32am next thursdaywen last tuesday at 1:30pmwen next saturday at 11amwen 5 hours and 20 minutes from nowwen one week from nowwen two days from nowwen twenty minutes from nowwen 1756486501(unix timestamp)
Dependencies
~14–20MB
~320K SLoC