Wiki source code of BusinessCalendar
Show last authors
1 | Business Calendars are used to calculated deadlines and duration based on working hours, hollidays, weekends. |
2 | A Business calendar is created with a sysGeneralCalendar |
3 | |
4 | == Functions == |
5 | === getStartDate(date) === |
6 | |
7 | |
8 | return: gets the next possible starting time for a task, as the next |
9 | possible laborable time which could be the same moment or after. |
10 | === getDuration(start, end, business) === |
11 | Get the duration between two dates |
12 | * business: true if workings hours, hollidays and week ends should be taken in account |
13 | |
14 | === getEndDate(start, length) === |
15 | Returns a start date plus an amount of work. |
16 | |
17 | === getDayStart(date) === |
18 | Returns the earliest possible start date ignoring the current time of day. |
19 | |
20 | === isHoliday(date) === |
21 | Check if a date is a holiday |
22 | |
23 | === isLaborable(date) === |
24 | Check if a date is a laborable day (non holiday and has open hours) |