Thanksgiving Day calculator By , journalist and programmer |
|
![]() |
In many countries Thanksgiving Day ("for harvest and labour", as the Dutch say) is a religious matter. It is only celebrated inside the churches and non-christians very often don't even know the date of the event. In North-America this is quite different. Thanksgiving is a yearly public holiday in the USA as well in Canada. |
In the United States of America Thanksgiving Day is celebrated on the fourth Thursday in November. So, the first occurrence will be on: The Canadians have their Thanksgiving festivities on the second Monday in October. Next Thanksgiving in Canada is: The engine Windows keeps track of time in portions of 100 nanoseconds, stored in a structure called FILETIME. Once you know the filetime for a certain calendar date, simply divide this by 24 times 60 times 60 times 10,000,000, i.e. the number of 100-nanoseconds-portions for a full day. This gives 0 for "01/01/1601", 1 for "01/02/1601" etcetera. Here's the sequence of calculations to find, for instance, the 4th Thursday of November: |
|
Where to download? |