dow 0.1.2

Tomohiko Sakamoto's algorithm for finding the day of the week
Documentation

dow: Day of the Week

Return the day of the week a specific date falls on (uses Tomohiko Sakamoto's algorithm).

Build Status Docs Status On crates.io

Usage

Add this to your Cargo.toml:

[dependencies]
dow = "0.1"

and this to your crate root:

extern crate dow;

and then you can use it as follows:

let day_index = dow::dow(2017, 7, 2);
assert_eq!(day_index, 0);

Note: Sunday is 0, Monday is 1 etc.