| Crates.io | dow |
| lib.rs | dow |
| version | 0.1.3 |
| created_at | 2017-07-02 13:50:47.452792+00 |
| updated_at | 2018-04-17 14:05:36.001865+00 |
| description | Tomohiko Sakamoto's algorithm for finding the day of the week |
| homepage | https://github.com/neosilky/dow |
| repository | https://github.com/neosilky/dow |
| max_upload_size | |
| id | 21580 |
| size | 4,300 |
Return the day of the week a specific date falls on (uses Tomohiko Sakamoto's algorithm).
Add this to your Cargo.toml:
[dependencies]
dow = "0.1"
and this to your crate root:
extern crate dow;
use dow::Day;
and then you can use it as follows:
let day = dow::dow(2017, 7, 2);
assert_eq!(day, Day::Sunday);