Zodish.Type.DateTime (zodish v0.2.4)
View SourceThis module describes a Zodish date-time type.
Summary
Functions
Creates a new DateTime type.
Types
@type t() :: %Zodish.Type.DateTime{ after: Zodish.Option.t( DateTime.t() | {n :: integer(), unit(), :from_now} | mfa() | (-> DateTime.t()) ) | nil, before: Zodish.Option.t( DateTime.t() | {n :: integer(), unit(), :from_now} | mfa() | (-> DateTime.t()) ) | nil, coerce: boolean() }
@type unit() ::
:millisecond | :second | :minute | :hour | :day | :week | :month | :year