Tempo.InvalidDateError exception (Tempo v0.7.0)

Copy Markdown View Source

Exception raised when date components do not form a valid date under the chosen calendar.

Reasons include a month outside 1..months_in_year(year), a day outside 1..days_in_month(year, month), and calendar- specific rules (Cheshvan-30 is valid only in a Hebrew complete year, for example).

Summary

Types

t()

@type t() :: %Tempo.InvalidDateError{
  __exception__: term(),
  calendar: module() | nil,
  day: integer() | nil,
  month: integer() | nil,
  reason: atom() | String.t() | nil,
  unit: atom() | nil,
  valid_range: Range.t() | nil,
  value: integer() | nil,
  year: integer() | nil
}