Cocktail.Schedule.new
You're seeing just the function
new
, go back to Cocktail.Schedule module for more information.
Specs
new(Cocktail.time(), Cocktail.schedule_options()) :: t()
Creates a new schedule using the given start time and options.
This schedule will be empty and needs recurrence rules added to it before it is useful.
Use add_recurrence_rule/3
to add rules to a schedule.
Options
:duration
- The duration of each event in the schedule (in seconds).
Examples
iex> new(~N[2017-01-01 06:00:00], duration: 3_600)
#Cocktail.Schedule<>