Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save briandoll/2594 to your computer and use it in GitHub Desktop.
Save briandoll/2594 to your computer and use it in GitHub Desktop.
undefined
s = Time.now
e = s + 100.days
i = s
dates = []
dates << s
while i < e
i += 1.week
dates << i
end
dates << e
dates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment