Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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