Method: CircleTime::BuildTime#month
- Defined in:
- lib/circletime.rb
#month ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/circletime.rb', line 42 def month sum_build_time do |build_day| beginning_day = DateTime.now.beginning_of_month.to_date end_day = DateTime.now.end_of_month.to_date beginning_day <= build_day && build_day <= end_day end end |