Expand description
Calculate and display achievements
Install using Cargo:
$ cargo install achievements
Then run by
$ achievements
Moon landing: 19984 days πππππ
Berlin Wall Fall: 12567 days πππ
IMPORTANT: The way the number of days/months/etc is calculated is very simple and not accurate. A day is ~86400 seconds. A month is ~30 days, a year is ~365 days etcβ¦this means the reported intervals are only a rough indication and they can be wrong.
For example:
- the accurate number of days since the Moon landing should be 19985 days but the tool reports 19984 days (1 day off)
- the accurate number of days since the Berlin Wall fall should be 12568 days but the tool reports 12567 days (1 day off)
Modules§
Structs§
Enums§
Constants§
Functions§
- Returns the number of days since the given date