View Source OpenHours.Interval (open_hours v0.1.1)
This 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
A tuple of two Time structs representing the beginning and end of an interval.
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.