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