bmitch / relogio

Terminal clock in Rust
MIT License
3 stars 2 forks source link

Add day of the year #6

Closed ntrupin closed 5 years ago

ntrupin commented 5 years ago

Related issue: bmitch/relogio Issue #2

Added a line to the interface above the minute/hour/day/month tracking bars that states how many days have passed in the current year, and how many are left.

Example (for August 19): It is day 231 of 365 - 134 days remaining in 2019

ntrupin commented 5 years ago

I just added a screenshot to the README as well.

bmitch commented 5 years ago

:tada: thanks @ntrupin ! I may tweak the UI eventually at some point but this is awesome. I was trying to figure out how to get the number of days last night and was scratching my head. I wasn't sure if there was a built in way within Chrono. The way you did it makes a lot of sense.

Feel free to contribute more if you like. This is meant as a fun project to help me learn Rust and this really helps!