Time.PWorkingTimeForBusiness protocol (etl_core v0.1.17)
Module oriented to the specification of each business with its schedules
Link to this section Summary
Functions
Check if the defined date is a working day
Returns the working hours of a day, given the business
Link to this section Types
@type t() :: term()
Link to this section Functions
Link to this function
is_working_day?(date, business)
Check if the defined date is a working day
parameters
Parameters:
- date: Timex.DateTime. Date.
- business: Atom. Business.
return
Return:
- Boolean.
Link to this function
working_hours(date, business)
Returns the working hours of a day, given the business
parameters
Parameters:
- date: Timex.DateTime. Date.
- business: Atom. Business.
return
Return:
- {start_time, end_time}, where each element is {hour, minute, second}