Tempus.Slot.valid-question-mark
You're seeing just the function
valid-question-mark
, go back to Tempus.Slot module for more information.
Specs
Checks whether the Slot
is valid (to > from) or not.
Examples
iex> slot = %Tempus.Slot{from: ~U|2015-09-30 00:00:00Z|, to: ~U|2015-10-01 01:00:00Z|}
iex> Tempus.Slot.valid?(slot)
true
iex> Tempus.Slot.valid?(%Tempus.Slot{from: slot.to, to: slot.from})
false