weekday v0.0.2 Weekday protocol View Source

Weekday provide day_of_week that return value atom like :monday

Examples

iex> Weekday.day_of_week(7)
:sunday

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() ::
  :monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday

Link to this section Functions

Link to this function day_of_week(n) View Source
day_of_week(any()) :: Weekday.t()