Documentation for method last-date-in-month
assembled from the following pages:
Class: Date §
From Date
(Date) method last-date-in-month §
Defined as:
method last-date-in-month(Date: --> Date)
Returns the last date in the month of the Date
object. Otherwise, returns the invocant if the day value is already the last day of the month.
say Date.new('2015-11-24').last-date-in-month; # OUTPUT: «2015-11-30»
This should allow for much easier ranges like
.. .last-date-in-month
for all remaining dates in the month.