Time.PWorkingTimeForBusiness protocol (etl_core v0.1.54)
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, params)
Check if the defined date is a working day
parameters
Parameters:
- date: Timex.DateTime. Date.
- business: Atom. Business.
- params: t. Auxiliary parameters.
return
Return:
- Boolean.
Link to this function
working_hours(date, business, params)
Returns the working hours of a day, given the business
parameters
Parameters:
- date: Timex.DateTime. Date.
- business: Atom. Business.
- params: t. Auxiliary parameters.
return
Return:
- {start_time, end_time}, where each element is {hour, minute, second}