Skip to content

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

License

Notifications You must be signed in to change notification settings

daniellockyer/dow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages