Want.DateTime (want v1.9.0)

Provides conversions to and from Elixir DateTime structs.

Link to this section Summary

Link to this section Types

Specs

result() ::
  {:ok,
   %DateTime{
     calendar: term(),
     day: term(),
     hour: term(),
     microsecond: term(),
     minute: term(),
     month: term(),
     second: term(),
     std_offset: term(),
     time_zone: term(),
     utc_offset: term(),
     year: term(),
     zone_abbr: term()
   }}
  | {:error, binary()}

Link to this section Functions

Link to this function

cast(input, opts)

Specs

cast(input :: any(), opts :: Keyword.t()) :: result()