lib/commercial_weeks.rb in commercial_weeks-0.2.0 vs lib/commercial_weeks.rb in commercial_weeks-0.2.1
- old
+ new
@@ -6,11 +6,9 @@
module CommercialWeeks
def self.week_dates(week_num, year)
week_start = Date.commercial(year, week_num, 1)
week_end = Date.commercial(year, week_num, 7)
- p week_start
- p week_end
week_end = Date.new(year).end_of_year if week_end.year > week_start.year
[week_start.strftime('%d %b, %Y'), week_end.strftime('%d %b, %Y')].join(' - ')
end
def self.weeks_count(year)