| org.obe.spi.runtime.BusinessCalendar
BusinessCalendar | public interface BusinessCalendar (Code) | | Provides date arithmetic services based on a business calendar. It provides
stateless versions of the date arithmetic methods of
java.util.Calendar .
author: Adrian Price |
add | Date add(Date base, int field, int interval, String user)(Code) | | Wraps the Calendar Date Arithmetic function. Adds the specified (signed)
amount of time to the given time field, based on the calendar's rules.
Parameters: base - The base date. Parameters: field - The JDK calendar field code. Parameters: interval - The amount of date or time to be added to the field. Parameters: user - The (optional) user name for which the computation is beingperformed. Calendar implementations can use this information to ensurethat temporal computations take proper account of a user's time zone. The result of the date computation. |
add | Date add(Date base, DurationUnit unit, int interval, String user)(Code) | | Wraps the Calendar Date Arithmetic function. Adds the specified (signed)
amount of time using the given duration unit, based on the calendar's
rules.
Parameters: base - The base date. Parameters: unit - The XPDL duration unit to use. Parameters: interval - The amount of date or time to be added to the field. Parameters: user - The (optional) user name for which the computation is beingperformed. Calendar implementations can use this information to ensurethat temporal computations take proper account of a user's time zone. The result of the date computation. |
|
|