Wiki source code of BusinessCalendar

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

Hide last authors
Pierre Dubois 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
Pierre Dubois 3.1 4
5
Pierre Dubois 1.1 6 == Functions ==
7 === getStartDate(date) ===
8
9
10 return: gets the next possible starting time for a task, as the next
Pierre Dubois 2.1 11 possible laborable time which could be the same moment or after.
Pierre Dubois 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
Pierre Dubois 2.1 19 === getDayStart(date) ===
20 Returns the earliest possible start date ignoring the current time of day.
Pierre Dubois 1.1 21
22 === isHoliday(date) ===
Pierre Dubois 2.1 23 Check if a date is a holiday
Pierre Dubois 1.1 24
25 === isLaborable(date) ===
Pierre Dubois 2.1 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