dow 0.1.3

Tomohiko Sakamoto's algorithm for finding the day of the week
Documentation
  • Coverage
  • 10%
    1 out of 10 items documented1 out of 2 items with examples
  • Size
  • Source code size: 3.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 765.35 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • daniellockyer/dow
    5 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • daniellockyer

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;
use dow::Day;

and then you can use it as follows:

let day = dow::dow(2017, 7, 2);
assert_eq!(day, Day::Sunday);