Function
|
Signature
|
Meaning
|
Availability
|
---|---|---|---|
isWorkday
|
boolean isWorkday(Object context, Date date
|
Checks if the specified date is on a work day, according to the work time calendar in the specified context, that must be a project or project aware object, for example, tracker or tracker item. If context is null, the system wide work time calendar is used.
|
Codebeamer 9.3.0 and later
|
scrollToWorkday
|
Date scrollToWorkday(Object context, Date date, boolean forward
|
Scrolls the specified date to the same time-of-day of the next or previous work day. If the specified date is already a work day, the unmodified date and time is returned. To scroll to the next or previous work day other than the specified day, use scrollWorkdays(context, date, ±1)
|
Codebeamer 9.3.0 and later
|
scrollWorkdays
|
Date scrollWorkdays(Object context, Date date, int days
|
Scroll the specified date to the same time-of-day, by the specified number of work days ahead or back.
|
Codebeamer 9.3.0 and later
|
scrollToWorkTime
|
Date scrollToWorkTime(Object context, Date date, boolean forward)
|
Scroll the specified date to the next or previous business or working hours. If the date is already within working hours, the date is not modified.
|
Codebeamer 9.3.0 and later
|
scrollWorkTime
|
Date scrollWorkTime(Object context, Date date, int distance, String unit)
|
Scrolls the specified calendar date by the specified distance of net working time. The distance can be positive, to scroll forward into the future, or negative, to scroll backwards into the past. The scroll unit can be be d(ays), h(ours), m(in(utes)) or s(ec(onds)), where 1 d(ay) = 24 h(ours).
|
Codebeamer 9.3.0 and later
|
workTimeBetween
|
Long workTimeBetween(Object context, Date from, Date until, String unit)
|
Get the net working time between the two specified dates in the specified unit. If from or until is null, then the result will be null. If from is after until, the result is negative. The result unit can be d(ays), h(ours), m(in(utes)), s(ec(ond s)) or null to return milliseconds.
|
Codebeamer 9.3.0 and later
|