dow
pub fn dow(y: usize, m: usize, d: usize) -> usize
Return the index of the day for which the given date corresponds to.
y
m
d
extern crate dow; let day_index = dow::dow(2017, 7, 2); assert_eq!(day_index, 0); // 2017/07/02 is a Sunday
Sunday is 0, Monday is 1 etc.
0
1