Home > Back-end >  Ask what day is the first day of a year??????
Ask what day is the first day of a year??????

Time:09-19

T=(coutdays 7 + 2) (year) % % o explanation!!!!!

CodePudding user response:

Baidu once for each year of the first day of the week's algorithm, the principle,

CodePudding user response:

Must first know a benchmark, such as the 2000-01-01 is Saturday, and then ask some year on January 1 and the 2000-01-01 is the number of days, days mod7 plus benchmark is several year January 1 week,

CodePudding user response:

The 0001-01-01 is Monday
  • Related