DateTimeParser v1.0.0 DateTimeParser.Parser.Date 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

Link to this type

dayable()

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

Link to this section Functions

Link to this function

validate_day(date)

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

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