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 wich 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(dt) ===
18 Returns the earliest possible start date ignoring the current time of day
19 value. This method is usefull for use in UI date calculations.
20
21 return: then {@link #getNextPossibleStart(Date)} is used.
22 === isHoliday(date) ===
23 Check if a date is a holliday
24
25 === isLaborable(date) ===
26 Check if a date is a labor day
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation