Function
|
Signature
|
Meaning
|
Availability
|
---|---|---|---|
isWorkday
|
boolean isWorkday(Object context, Date date
|
Check if the specified date is on a work day, according to the work time calendar in the specified context, that should be a project or project aware object, e.g. tracker or tracker item. If context is null, then the system wide work time calendar will be used.
|
Codebeamer 9.3.0 and newer
|
scrollToWorkday
|
Date scrollToWorkday(Object context, Date date, boolean forward
|
Scroll the specified date to the same time-of-day of the next/previous work day. If the specified date is already a work day, then the unmodified date and time will be returned. To scroll to the next/previous work day other than the specified day, use scrollWorkdays(context, date, ±1)
|
Codebeamer 9.3.0 and newer
|
scrollWorkdays
|
Date scrollWorkdays(Object context, Date date, int days
|
Scroll the specified date to the same time-of-day the specified number of work days ahead or back.
|
Codebeamer 9.3.0 and newer
|
scrollToWorkTime
|
Date scrollToWorkTime(Object context, Date date, boolean forward)
|
Scroll the specified date to the next/previous business/working hours. If the date is already within working hours, then the date will not be modified.
|
Codebeamer 9.3.0 and newer
|
scrollWorkTime
|
Date scrollWorkTime(Object context, Date date, int distance, String unit)
|
Scroll 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 "d(ay(s))", "h(our(s))", "m(in(ute(s)))" or "s(ec(ond(s)))", where 1 d(ay) = 24 h(ours).
|
Codebeamer 9.3.0 and newer
|
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, then the result will be negative. The result unit can be "d(ay(s))", "h(our(s))", "m(in(ute(s)))", "s(ec(ond(s)))" or null to return milliseconds.
|
Codebeamer 9.3.0 and newer
|