Last active
August 29, 2015 14:00
-
-
Save brandonhilkert/11147776 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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