OpenHours.Interval (open_hours v0.1.2)
View SourceThis module contains functions for working with intervals of time.
Summary
Functions
Calculates the difference between two intervals or two lists of intervals.
Returns true if the interval contains the instant.
Types
Functions
Calculates the difference between two intervals or two lists of intervals.
It always returns a list of intervals.
@spec within?(t(), DateTime.t() | Time.t()) :: boolean()
Returns true if the interval contains the instant.