doomsday 0.3.0

An implementation of Conway's doomsday algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use doomsday::*;

fn main() {
    let dd = Doomsday(2020);
    println!("--------------");
    println!("John H. Conway");
    println!("--------------");
    println!("Died on a doomsday in April of {}", dd.0);
    println!("Anchored on the {}th", dd.anchor(Month::April));
    println!("The second {} of the month", dd);
    println!("R.I.P.");
}