Skip to content

sergenes/calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Calendar

Calendar - Day of the week simplified solution

Gregorian calendar rules:

  • A week is 7 days (Monday as the first day)
  • Regular year: 365 days
  • Leap year: 366 days
  • Leap year rules:
  • Years divisible by 4 are leap years.
  • Century years (divisible by 100) ARE NOT leap years.
  • Exception: Century years divisible by 400 ARE leap years (example: 1700, 1800, and 1900 weren’t leap years, but 2000 was).
  • And ofcourse, the year divides into 12 months: [31, 28/29 (for leap years), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] days.

Good Read

Proleptic Gregorian Calendar

OxCal calendar system used for radiocarbon dating, assumes January 1, 1 AD (listed as AD 0001 in the table) was a Monday in the Gregorian calendar.

Quora Discussion

Original Post On LinkedIn

About

Calendar Simplified Solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published