Wiki source code of BusinessCalendar

Last modified by Pierre Dubois on 2018/06/06 17:01

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
5
6 == Functions ==
7 === getStartDate(date) ===
8
9
10 return: gets the next possible starting time for a task, as the next
11 possible laborable time which could be the same moment or after.
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
19 === getDayStart(date) ===
20 Returns the earliest possible start date ignoring the current time of day.
21
22 === isHoliday(date) ===
23 Check if a date is a holiday
24
25 === isLaborable(date) ===
26 Check if a date is a laborable day (non holiday and has open hours)
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation