Wiki source code of BusinessCalendar
Hide last authors
1.1 | 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 | |||
3.1 | 4 | ||
5 | |||
1.1 | 6 | == Functions == | |
7 | === getStartDate(date) === | ||
8 | |||
9 | |||
10 | return: gets the next possible starting time for a task, as the next | ||
2.1 | 11 | possible laborable time which could be the same moment or after. | |
1.1 | 12 | === getDuration(start, end, business) === | |
13 | Get the duration between two dates | ||
14 | * business: true if workings hours, hollidays and week ends should be taken in account | ||
15 | |||
16 | === getEndDate(start, length) === | ||
17 | Returns a start date plus an amount of work. | ||
18 | |||
2.1 | 19 | === getDayStart(date) === | |
20 | Returns the earliest possible start date ignoring the current time of day. | ||
1.1 | 21 | ||
22 | === isHoliday(date) === | ||
2.1 | 23 | Check if a date is a holiday | |
1.1 | 24 | ||
25 | === isLaborable(date) === | ||
2.1 | 26 | Check if a date is a laborable day (non holiday and has open hours) |