Cocktail v0.2.0 Cocktail.Builder.String View Source
Build human readable strings from schedules.
Link to this section Summary
Functions
Builds a human readable string represenation of a Cocktail.Schedule.t/0
Link to this section Functions
Builds a human readable string represenation of a Cocktail.Schedule.t/0
.
Examples
iex> alias Cocktail.Schedule
...> schedule = Schedule.new(~N[2017-01-01 06:00:00])
...> schedule = Schedule.add_recurrence_rule(schedule, :daily, interval: 2, hours: [10, 12])
...> build(schedule)
"Every 2 days on the 10th and 12th hours of the day"