Time.PWorkingTimeForBusiness protocol (etl_core v0.1.55)

Module oriented to the specification of each business with its schedules

Summary

Functions

Check if the defined date is a working day

Returns the working hours of a day, given the business

Types

@type t() :: term()

Functions

Link to this function

is_working_day?(date, business, params)

Check if the defined date is a working day

Parameters:

- date: Timex.DateTime. Date.

- business: Atom. Business.

- params: t. Auxiliary parameters.

Return:

- Boolean.
Link to this function

working_hours(date, business, params)

Returns the working hours of a day, given the business

Parameters:

- date: Timex.DateTime. Date.

- business: Atom. Business.

- params: t. Auxiliary parameters.

Return:

- {start_time, end_time}, where each element is {hour, minute, second}