ထႅမ်းပလဵတ်ႉ:Weekday in month
Appearance
Usage
[မႄးထတ်းငဝ်ႈငႃႇ]Code
[မႄးထတ်းငဝ်ႈငႃႇ]Note that the order of the input can be reversed. The following give the same output.
{{Weekday in month|y|m|w|n}}{{Weekday in month|n|w|m|y}}
Note that the year is optional. The following give the nth w-day of month m this year.
{{Weekday in month||m|w|n}}{{Weekday in month|n|w|m}}
Parameters
[မႄးထတ်းငဝ်ႈငႃႇ]| y | year | numeric format, certain words, blank
|
|---|---|---|
| m | month | numeric format, spelt out in full or abbreviated
|
| w | weekday | spelt out in full or abbreviated (preferred)
or numeric format (discouraged)
|
| n | count | numeric format, spelt out in full or abbreviated
|
Examples
[မႄးထတ်းငဝ်ႈငႃႇ]- for the first Sunday of January 2000
- n =
first,1stor1 - w =
SundayorSun(or0) - m =
January,Janor1 - y =
2000
- n =
- for the first Monday of February 2006
- n =
first,1stor1 - w =
MondayorMon(or1) - m =
February,Febor2 - y =
2006
- n =
- for the first Tuesday of March 2010
- n =
first,1stor1 - w =
TuesdayorTue(or2) - m =
March,Maror3 - y =
2010
- n =
- for the second Tuesday of April 2012
- n =
second,2ndor2 - w =
TuesdayorTue(or2) - m =
April,Apror4 - y =
2012
- n =
- for the second Tuesday of May 2020
- n =
second,2ndor2 - w =
TuesdayorTue(or2) - m =
Mayor5 - y =
2020
- n =
- for the second Wednesday of June 2100
- n =
second,2ndor2 - w =
WednesdayorWed(or3) - m =
June,Junor6 - y =
2100
- n =
- for the third Wednesday of July this year
- n =
third,3rdor3 - w =
WednesdayorWed(or3) - m =
July,Julor7 - y =
{{#time:Y}},{{CURRENTYEAR}}or leave it blank
- n =
- for the third Thursday of August this year
- n =
third,3rdor3 - w =
ThursdayorThu(or4) - m =
August,Augor8 - y =
{{#time:Y}},{{CURRENTYEAR}}or leave it blank
- n =
- for the last Thursday of September last year
- n =
lastor-1 - w =
ThursdayorThu(or4) - m =
September,Sepor9 - y =
{{#time:Y|last year}},{{LASTYEAR}}orlast year
- n =
- for the last Friday of October last year
- n =
lastor-1 - w =
FridayorFri(or5) - m =
October,Octor10 - y =
{{#time:Y|last year}},{{LASTYEAR}}orlast year
- n =
- for the second last Friday of November next year
- n =
second last,2nd lastor-2 - w =
FridayorFri(or5) - m =
November,Novor11 - y =
{{#time:Y|next year}},{{NEXTYEAR}}ornext year
- n =
- for the second last Saturday of December next year
- n =
second last,2nd lastor-2 - w =
SaturdayorSat(or6) - m =
December,Decor12 - y =
{{#time:Y|next year}},{{NEXTYEAR}}ornext year
- n =
Calculation
[မႄးထတ်းငဝ်ႈငႃႇ]The template then gives j, the day of the month, as calculated by the following formulae.
- j = 7×n − 6 + (w − w1) mod 7 (for positive n)
- j = t + 7×(n + 1) − (wt − w) mod 7 (for negative n)
Where t is the last day of the month, wt is the non-ISO weekday number of the last day of the month, w1 is the non-ISO weekday number of the first day of the month and n and w are as defined above.
Examples
[မႄးထတ်းငဝ်ႈငႃႇ]See also
[မႄးထတ်းငဝ်ႈငႃႇ]- {{WEEKDAY}}
- {{Weekday in month elapsed}}