Skip to content

Allow passing Occurrence to methods that expect a time#570

Open
dawson-conway wants to merge 1 commit intoice-cube-ruby:masterfrom
dawson-conway:occurrence_exception
Open

Allow passing Occurrence to methods that expect a time#570
dawson-conway wants to merge 1 commit intoice-cube-ruby:masterfrom
dawson-conway:occurrence_exception

Conversation

@dawson-conway
Copy link

This is to make it easier to do something like

schedule.add_exception_time(schedule.next_occurrence)

Currently this prevents you from serializing the schedule, as the SingleOccurrenceRule has an Occurrence as it's start_time. When it attempts to serialize the Occurrence as a time, it raises an exception.

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