days-in-month
ErrorsCollection

days-in-month

Synthesised documentation from type/Dateish

From type/Dateish

See Original text in context

method days-in-month(Dateish:D: --> Int:D)

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␤»