Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ld = {}
- ld = { :from => Time.now.beginning_of_month.next_week, :to => Time.now.beginning_of_month.next_week.next_week.yesterday }
- while ld[:from].last.month == Time.now.month do
- ld = ld << { :from => ld[:from].last.next_week, :to => ld[:from].last.next_week.next_week.yesterday }
- end
Add Comment
Please, Sign In to add comment