The idea of ​​developing a "Calendar" from scratch

What is the wide mathematical idea of ​​a calendar if you need to build it from scratch, regardless of the OS or other libraries?

+3
source share
2 answers

A broad mathematical idea is to find out the day of the week on a specific day. Each time you print a month, you must pick up the start of the right week / day on the first day of that month. As usual, Wikipedia has the answer:

http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week

You will also need to consider leap years to make sure you type February correctly.

+4
source

, . , , , , , 100 .

!

, , , . , BIOS.

0

Source: https://habr.com/ru/post/1745567/


All Articles