DateTimeParser.Parser.Date (DateTimeParser v1.1.4) View Source

Tokenizes the string for date formats. This prioritizes the international standard for representing dates.

Link to this section Summary

Functions

Validate either the Date or [Naive]DateTime has a valid day

Link to this section Types

Specs

dayable() ::
  DateTime.t()
  | NaiveDateTime.t()
  | Date.t()
  | %{day: Calendar.day(), month: Calendar.month(), year: Calendar.year()}

Link to this section Functions

Specs

validate_day(dayable()) :: {:ok, dayable()} | :error

Validate either the Date or [Naive]DateTime has a valid day