#last #year #month #day #calculate #date #sundays

app lastdayofmonth

Calculate all the the last weekdays of a month for a year: ex last Sundays in 2022

2 releases

0.1.1 Jul 27, 2022
0.1.0 Jul 27, 2022

#24 in #month

CC0 license

6KB
84 lines

lastdayofmonth

Ever want to find all the last Sundays in 2022?

lastdayofmonth --year 2022 --day Sunday

This is an application to get all the last days of all months for a given a year.

Building

cargo build --release

Don't benchmark a testing suite, ever. But if you insist, the test ported 1-to-1 as found in other languages in the Perl Weekly Challange #175. You can run it like this.

cargo test --relesae

Also remember, the first run or build should be discarded as it may included compilation if not already done.

History

Originally created to get a Rust implementation for Mohammad Sajid Anwar challange 175 for the Perl Weekly Challange.

You can find the Facebook Post on the Perl Community here.

Dependencies

~4.5MB
~79K SLoC