Шаблон:Weekday in month/doc

Материал из Dharmakaya

(Различия между версиями)
Перейти к: навигация, поиск

Версия 03:50, 20 марта 2010

Содержание

Usage

{{Weekday in month|YEAR|MONTH|N|Q}}

Code

Raw formula: 7 * Q - 6 + (N - DayOfWeek(Year,Month,1)) % 7

Examples

Holiday 2006 2007 2008 2009 2010
Day Code Day Code Day Code Day Code Day Code
MLK Jr Day – 3rd Monday in January Jan1616{{weekday in month|2006|1|1|3}} Jan1515{{weekday in month|2007|1|1|3}} Jan2121{{weekday in month|2008|1|1|3}} Jan1919{{weekday in month|2009|1|1|3}} Jan1818{{weekday in month|2010|1|1|3}}
Presidents Day – 3rd Monday in February Feb2020{{weekday in month|2006|2|1|3}} Feb1919{{weekday in month|2007|2|1|3}} Feb1818{{weekday in month|2008|2|1|3}} Feb1616{{weekday in month|2009|2|1|3}} Feb1515{{weekday in month|2010|2|1|3}}
Memorial Day -- Last Monday in May May2929{{weekday in month|2006|5|1|-1}} May2828{{weekday in month|2007|5|1|-1}} May2626{{weekday in month|2008|5|1|-1}} May2525{{weekday in month|2009|5|1|-1}} May3131{{weekday in month|2010|5|1|-1}}
Labor Day – 1st Monday in September Sep44{{weekday in month|2006|9|1|1}} Sep33{{weekday in month|2007|9|1|1}} Sep11{{weekday in month|2008|9|1|1}} Sep77{{weekday in month|2009|9|1|1}} Sep66{{weekday in month|2010|9|1|1}}
Columbus Day – 2nd Monday in October Oct99{{weekday in month|2006|10|1|2}} Oct88{{weekday in month|2007|10|1|2}} Oct1313{{weekday in month|2008|10|1|2}} Oct1212{{weekday in month|2009|10|1|2}} Oct1111{{weekday in month|2010|10|1|2}}
Thanksgiving – 4th Thursday in November Nov2323{{weekday in month|2006|11|4|4}} Nov2222{{weekday in month|2007|11|4|4}} Nov2727{{weekday in month|2008|11|4|4}} Nov2626{{weekday in month|2009|11|4|4}} Nov2525{{weekday in month|2010|11|4|4}}
Father's Day – 3rd Sunday in June Jun1818{{weekday in month|2006|6|0|3}} Jun1717{{weekday in month|2007|6|0|3}} Jun1515{{weekday in month|2008|6|0|3}} Jun2121{{weekday in month|2009|6|0|3}} Jun2020{{weekday in month|2010|6|0|3}}
Mother's Day May1414{{weekday in month|2006|5|0|2}} May1313{{weekday in month|2007|5|0|2}} May1111{{weekday in month|2008|5|0|2}} May1010{{weekday in month|2009|5|0|2}} May99{{weekday in month|2010|5|0|2}}

See also


Личные инструменты
Пространства имён
Варианты
Действия
Навигация
Инструменты