You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Chris f1b1822bec 1st pass review on quest 05 subjects 3 years ago
..
README.md 1st pass review on quest 05 subjects 3 years ago

README.md

middle_day

Instructions

Use the chrono crate to create a function called middle_day, which returns, wrapped in an Option, the Weekday of the middle day of the year passed as an argument. chrono::Weekday has to be refered as wd.

Expected Function

For this exercise the signature of the function has to be found out.

Usage

Here is a program to test your function:

use middle_day::*;

fn main() {
    let date = Utc.ymd(2011, 12, 2).and_hms(21, 12, 09);

    println!("{:?}", middle_day(1022).unwrap());
}

And its output:

$ cargo run
Tue
$