Bedrock.Internal.Time.Interval (bedrock v0.5.2)
View SourceTime interval utilities for measuring elapsed time and duration calculations.
Summary
Types
@type t() :: {unit(), n :: non_neg_integer() | float()}
@type unit() ::
:week
| :day
| :hour
| :minute
| :second
| :millisecond
| :microsecond
| :nanosecond
Functions
@spec between(DateTime.t(), DateTime.t(), unit()) :: t()
@spec from(unit(), non_neg_integer() | float()) :: t()