Guest User

Untitled

a guest
May 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ld = {}
  2. ld = { :from => Time.now.beginning_of_month.next_week, :to => Time.now.beginning_of_month.next_week.next_week.yesterday }
  3. while ld[:from].last.month == Time.now.month do
  4. ld = ld << { :from => ld[:from].last.next_week, :to => ld[:from].last.next_week.next_week.yesterday }
  5. end
Add Comment
Please, Sign In to add comment