Skip to content

Refactor helpers date logic for clarity#27

Open
jpfuentes2 wants to merge 1 commit intoitsbspoke:masterfrom
jpfuentes2:master
Open

Refactor helpers date logic for clarity#27
jpfuentes2 wants to merge 1 commit intoitsbspoke:masterfrom
jpfuentes2:master

Conversation

@jpfuentes2
Copy link
Copy Markdown

  • Used the power of maths to determine second_wednesday_of a given month/year.
  • Used recursion in next_event_date to keep moving date forward.

Additional notes:

I am not sure what next_tb_event_date is doing. current_date is never advanced in the loop so it will cause an infinite loop if the next_event_date's month is one of 1,4,7,10.

- Used the power of maths to determine `second_wednesday_of` a given month/year.
- Used recursion in `next_event_date` to keep moving date forward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant