| java.lang.Object org.obe.engine.calendar.BusinessCalendarUtilities
BusinessCalendarUtilities | final public class BusinessCalendarUtilities (Code) | | |
Method Summary | |
public static void | clearBitSetBits(BitSet bits, int index, int count) Clears a range of bits in a BitSet. | public static int | countBitsForInterval(Date start, Date end, TimeZone tz) Computes the number of bits corresponding to a given time interval. | public static int | getIntervalIndex(Date start, Date end, TimeZone tz) Computes... | static int | getIntervalsInDate(GregorianCalendar date) This method returns the number of intervals in a given date. | static boolean | isBetween(GregorianCalendar date, GregorianCalendar start, GregorianCalendar end) | public static void | setBitSetBits(BitSet bits, int index, int count) Sets a range of bits in a BitSet. |
clearBitSetBits | public static void clearBitSetBits(BitSet bits, int index, int count)(Code) | | Clears a range of bits in a BitSet.
Parameters: bits - The BitSet to update. Parameters: index - Start index. Parameters: count - The number of bits to set. |
countBitsForInterval | public static int countBitsForInterval(Date start, Date end, TimeZone tz)(Code) | | Computes the number of bits corresponding to a given time interval. The
computation accounts for any DST changes which occur during the interval.
Parameters: start - Parameters: end - Parameters: tz - Bit count for interval. |
getIntervalIndex | public static int getIntervalIndex(Date start, Date end, TimeZone tz)(Code) | | Computes...
Parameters: start - Parameters: end - Parameters: tz - The number of intervals between two dates. |
getIntervalsInDate | static int getIntervalsInDate(GregorianCalendar date)(Code) | | This method returns the number of intervals in a given date. This
special method is required to account for the DST change date. When DST
occurs, the date only has 23 hours. When DST switches to Standard, then
the day has 25 hours.
Parameters: date - The nuumber of intervals on a given day. |
setBitSetBits | public static void setBitSetBits(BitSet bits, int index, int count)(Code) | | Sets a range of bits in a BitSet.
Parameters: bits - The BitSet to update. Parameters: index - Start index. Parameters: count - The number of bits to set. |
|
|