Skip to content

Instantly share code, notes, and snippets.

@brandonhilkert
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save brandonhilkert/11147776 to your computer and use it in GitHub Desktop.

Select an option

Save brandonhilkert/11147776 to your computer and use it in GitHub Desktop.
# I need every 6 months from a specific month AND day
Recurrence.new(
every: :month,
interval: 6,
on: [month, day]
).next
# But :on doesn't take an array for the month option
# Ideal Result:
# If today is 2014-4-21 => 2014-10-21
# If today is 2014-3-28 => 2014-9-28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment