BusinessCalendar

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

Business Calendars are used to calculated deadlines and duration based on working hours, hollidays, weekends.
 A Business calendar is created with a sysGeneralCalendar

Functions

getStartDate(date)

return: gets the next possible starting time for a task, as the next
         possible laborable time which could be the same moment or after.

getDuration(start, end, business)

Get the duration between two dates

  • business: true if workings hours, hollidays and week ends should be taken in account

getEndDate(start, length)

Returns a start date plus an amount of work.

getDayStart(date)

Returns the earliest possible start date ignoring the current time of day.

isHoliday(date)

Check if a date is a holiday

isLaborable(date)

Check if a date is a laborable day (non holiday and has open hours)

Tags:
Created by Pierre Dubois on 2018/06/06 17:01
     
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation