ESpec.DatesTimes.Delegator (ESpec v1.8.3) View Source

The ESpec.DateTimes.Delegator module. Used to delegate methods to the correct protocol implementation.

Link to this section Summary

Functions

Convert a date/time value to (gregorian) microseconds (microseconds since start of year zero if gregorian)

Link to this section Functions

Link to this function

to_comparison_units(calendar_type)

View Source

Specs

to_comparison_units(ESpec.DatesTimes.Types.calendar_types()) ::
  non_neg_integer() | {:error, term()}

Convert a date/time value to (gregorian) microseconds (microseconds since start of year zero if gregorian)