ExCycle.Validations.HourOfDay (ex_cycle v0.3.0)

HourOfDay defines a list of specific hours to use in the generated datetime.

Examples

iex> %HourOfDay{hours: [10, 20]}

will generate datetime every 10:00 and 20:00 of the interval specified (e.g. daily).

Summary

Types

@type t() :: %ExCycle.Validations.HourOfDay{hours: [non_neg_integer()]}

Functions

@spec new([non_neg_integer()]) :: t()