1 points | by hokuut 2 hours ago
2 comments
I built this because I work across Japan and the US, and I got tired of googling "Tokyo time to Dallas time" multiple times a day.
nanji (何時 - "what time?" in Japanese) is a simple CLI that shows current time across multiple zones, with a handy base-time conversion feature.
Example: "What time is 20:30 Tokyo in other cities?"
$ nanji -b tokyo -t 20:30 Asia/Tokyo 20:30 America/Chicago 05:30 America/New_York 06:30
Built with chrono/chrono-tz. ~500 lines of Rust.
GitHub: https://github.com/hoqqun/nanji
Would love feedback on the UX or feature ideas.
Have you seen Biff? It can do this and it will use your system's tzdb, unlike chrono. https://github.com/BurntSushi/biff
I built this because I work across Japan and the US, and I got tired of googling "Tokyo time to Dallas time" multiple times a day.
nanji (何時 - "what time?" in Japanese) is a simple CLI that shows current time across multiple zones, with a handy base-time conversion feature.
Example: "What time is 20:30 Tokyo in other cities?"
Features: - TOML config for your favorite zones - Custom aliases (type "dallas" instead of "America/Chicago") - One-liner install via shell script or cargo installBuilt with chrono/chrono-tz. ~500 lines of Rust.
GitHub: https://github.com/hoqqun/nanji
Would love feedback on the UX or feature ideas.
Have you seen Biff? It can do this and it will use your system's tzdb, unlike chrono. https://github.com/BurntSushi/biff