method day
1 | role Dateish |
1.1 | (Dateish) method day |
Documentation for method day
assembled from the following types:
role Dateish
From Dateish
(Dateish) method day
Defined as:
method day(Date: --> Int)
Returns the day of the month of the date (1..31).
say Date.new('2015-12-31').day; # OUTPUT: «31»say DateTime.new(date => Date.new('2015-12-24'), hour => 1).day; # OUTPUT: «24»