ExCycle.Validations.Lock (ex_cycle v0.3.0)

The Lock validation is used to lock a specific item like :day. So the generated datetime MUST have the valid datetime that match this restriction.

Summary

Types

@type t() :: %ExCycle.Validations.Lock{unit: unit()}
@type unit() :: :second | :minute | :hour | :day | :week_day | :month

Functions

@spec new(unit()) :: t()