Skip to content

Python function accepts mm/dd/yyyy and outputs day of week as string and integer. Any date since 1600.

Notifications You must be signed in to change notification settings

jerrycogswell/Day-of-Week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Day-of-Week

Python function accepts mm/dd/yyyy and outputs day of week as string and integer. Any date since 1600.

This Python algorithm is based upon one provided by Dr. Arthur Benjamin of Harvey Mudd College. It is explained in his lecture in The Great Courses course "The Secrets of Mental Math" and his book "Secrets of Mental Math" with Dr. Michael Shermer. To preserve the attribution of his method of mental math, I have deliberately omitted the memorization secrets. You will have to purchase his materials for that. I simply offer this simple calculation for the day of the week for any date since 1600 on the Gregorian calendar. Note that not all countries adopted the Gregorian calendar at the same time. Jerald Cogswell

About

Python function accepts mm/dd/yyyy and outputs day of week as string and integer. Any date since 1600.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages