lastdayofmonth

Crates.iolastdayofmonth
lib.rslastdayofmonth
version0.1.1
sourcesrc
created_at2022-07-27 03:51:57.298352
updated_at2022-07-27 05:06:48.23567
descriptionCalculate all the the last weekdays of a month for a year: ex last Sundays in 2022
homepage
repositoryhttps://github.com/EvanCarroll/rust-lastdayofmonth
max_upload_size
id633638
size12,917
Evan Carroll (EvanCarroll)

documentation

README

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.

Commit count: 6

cargo fmt