method weekday-of-month
1 | role Dateish |
1.1 | (Dateish) method weekday-of-month |
Documentation for method weekday-of-month
assembled from the following types:
role Dateish
From Dateish
(Dateish) method weekday-of-month
Defined as:
method weekday-of-month(Date: --> Int)
Returns a number (1..5) indicating the number of times a particular day-of-week has occurred so far during that month, the day itself included.
say Date.new("2003-06-09").weekday-of-month; # 2 (second Monday of the month)