In role Dateish§
See primary documentation in context for method month
method month(Date: --> Int)
Returns the month of the date (1..12).
say Date.new('2015-12-31').month; # OUTPUT: «12»say DateTime.new(date => Date.new('2015-12-24'), hour => 1).month; # OUTPUT: «12»