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

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

Summary

Functions

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

Types

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

Functions

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

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