Sha256: d177f179bc0d9bd8f91df8baa0757396d6dc412311e0f5bb6fc9e98960049a67
Contents?: true
Size: 443 Bytes
Versions: 7
Compression:
Stored size: 443 Bytes
Contents
module ByStar module RangeCalculations private def start_of_year(year=Time.zone.now.year) Time.utc(year, 1, 1) end def end_of_year(year=Time.zone.now.year) start_of_year.end_of_year end def start_of_month(month, year=Timeow.year) Time.utc(year, month, 1) end def end_of_month(month, year=Time.now.year) start_of_month(month, year).end_of_month end end end
Version data entries
7 entries across 7 versions & 1 rubygems