View Source ESpec.DatesTimes.DateTimeProtocol protocol (ESpec v1.9.0)
This protocol defines the API for functions which take a Date,
NaiveDateTime, or DateTime as input.
Link to this section Summary
Functions
Convert a date/time value to gregorian microseconds (microseconds since the start of year zero)
Link to this section Types
@type t() :: term()
Link to this section Functions
@spec to_comparison_units(ESpec.DatesTimes.Types.calendar_types()) :: non_neg_integer() | {:error, term()}
Convert a date/time value to gregorian microseconds (microseconds since the start of year zero)