Documentation for method days-in-month
assembled from the following pages:
Role: Dateish §
From Dateish
(Dateish) method days-in-month §
Defined as:
method days-in-month(Dateish: --> Int)
Returns the number of days in the month represented by the Dateish object:
say Date.new("2016-01-02").days-in-month; # OUTPUT: «31» say DateTime.new(:year<10000>, :month<2>).days-in-month; # OUTPUT: «29»