Package com.illumon.util.calendar
Class AbstractBusinessCalendar
java.lang.Object
com.illumon.util.calendar.AbstractCalendar
com.illumon.util.calendar.AbstractBusinessCalendar
- All Implemented Interfaces:
BusinessCalendar
,Calendar
- Direct Known Subclasses:
DefaultBusinessCalendar
,DefaultNoHolidayBusinessCalendar
public abstract class AbstractBusinessCalendar extends AbstractCalendar implements BusinessCalendar
-
Constructor Summary
Constructors Constructor Description AbstractBusinessCalendar()
-
Method Summary
Modifier and Type Method Description String[]
businessDaysInRange(DBDateTime start, DBDateTime end)
Returns the business days betweenstart
andend
, inclusive.String[]
businessDaysInRange(String start, String end)
Returns the business days betweenstart
andend
, inclusive.double
diffBusinessDay(DBDateTime start, DBDateTime end)
Returns the amount of business time in standard business days betweenstart
andend
.double
diffNonBusinessDay(DBDateTime start, DBDateTime end)
Returns the amount of non-business time in standard business days betweenstart
andend
.long
diffNonBusinessNanos(DBDateTime start, DBDateTime end)
Returns the amount of non-business time in nanoseconds betweenstart
andend
.double
fractionOfBusinessDayComplete(DBDateTime time)
Returns the fraction of the business day complete by the given time.double
fractionOfBusinessDayRemaining(DBDateTime time)
Returns the fraction of the business day remaining after the given time.double
fractionOfStandardBusinessDay(DBDateTime time)
For the given date, returns the ratio of the business day length and the standard business day length.double
fractionOfStandardBusinessDay(String date)
For the given date, returns the ratio of the business day length and the standard business day length.boolean
isBusinessDay(DBDateTime time)
Does time occur on a business day?boolean
isBusinessDay(String date)
Is the date a business day?boolean
isBusinessDay(LocalDate date)
Is the date a business day?boolean
isBusinessTime(DBDateTime time)
Determines if the specified time is a business time.boolean
isLastBusinessDayOfMonth(DBDateTime time)
Is the time on the last business day of the month with business time remaining?boolean
isLastBusinessDayOfMonth(String date)
Is the date the last business day of the month?boolean
isLastBusinessDayOfWeek(DBDateTime time)
Is the time on the last business day of the week with business time remaining?boolean
isLastBusinessDayOfWeek(String date)
Is the date the last business day of the week?String
nextBusinessDay(DBDateTime time)
Gets the next business day.String
nextBusinessDay(DBDateTime time, int days)
Gets the business datedays
business days after inputtime
.String
nextBusinessDay(String date)
Gets the next business day.String
nextBusinessDay(String date, int days)
Gets the business datedays
business days after inputdate
.BusinessSchedule
nextBusinessSchedule(DBDateTime time)
Gets the next business schedule.BusinessSchedule
nextBusinessSchedule(DBDateTime time, int days)
Gets the business scheduledays
days after inputtime
.BusinessSchedule
nextBusinessSchedule(String date)
Gets the next business schedule after inputdate
.BusinessSchedule
nextBusinessSchedule(String date, int days)
Gets the business scheduledays
days after inputdate
.String
nextNonBusinessDay(DBDateTime time)
Gets the next non-business day.String
nextNonBusinessDay(DBDateTime time, int days)
Gets the non-business datedays
non-business days after inputtime
.String
nextNonBusinessDay(String date)
Gets the next non-business day.String
nextNonBusinessDay(String date, int days)
Gets the non-business datedays
non-business days after inputdate
.String[]
nonBusinessDaysInRange(DBDateTime start, DBDateTime end)
Returns the non-business days betweenstart
andend
, inclusive.String[]
nonBusinessDaysInRange(String start, String end)
Returns the non-business days betweenstart
andend
, inclusive.int
numberOfBusinessDays(DBDateTime start, DBDateTime end)
Returns the number of business days betweenstart
andend
.int
numberOfBusinessDays(DBDateTime start, DBDateTime end, boolean endInclusive)
Returns the number of business days betweenstart
andend
.int
numberOfBusinessDays(String start, String end)
Returns the number of business days betweenstart
andend
.int
numberOfBusinessDays(String start, String end, boolean endInclusive)
Returns the number of business days betweenstart
andend
.int
numberOfNonBusinessDays(DBDateTime start, DBDateTime end)
Returns the number of non-business days betweenstart
andend
.int
numberOfNonBusinessDays(DBDateTime start, DBDateTime end, boolean endInclusive)
Returns the number of non-business days betweenstart
andend
.int
numberOfNonBusinessDays(String start, String end)
Returns the number of non-business days betweenstart
andend
.int
numberOfNonBusinessDays(String start, String end, boolean endInclusive)
Returns the number of non-business days betweenstart
andend
.String
previousBusinessDay(DBDateTime time)
Gets the previous business day.String
previousBusinessDay(DBDateTime time, int days)
Gets the business datedays
business days before inputtime
.String
previousBusinessDay(String date)
Gets the previous business day.String
previousBusinessDay(String date, int days)
Gets the business datedays
business days before inputdate
.BusinessSchedule
previousBusinessSchedule(DBDateTime time)
Gets the previous business schedule before inputtime
.BusinessSchedule
previousBusinessSchedule(DBDateTime time, int days)
Gets the business scheduledays
days before inputtime
.BusinessSchedule
previousBusinessSchedule(String date)
Gets the business schedule before inputdate
.BusinessSchedule
previousBusinessSchedule(String date, int days)
Gets the business scheduledays
days before inputdate
.String
previousNonBusinessDay(DBDateTime time)
Gets the previous non-business day.String
previousNonBusinessDay(DBDateTime time, int days)
Gets the non-business datedays
non-business days before inputtime
.String
previousNonBusinessDay(String date)
Gets the previous non-business day.String
previousNonBusinessDay(String date, int days)
Gets the non-business datedays
non-business days before inputdate
.Methods inherited from class com.illumon.util.calendar.AbstractCalendar
dayOfWeek, dayOfWeek, daysInRange, daysInRange, diffDay, diffNanos, diffYear, nextDay, nextDay, nextDay, nextDay, numberOfDays, numberOfDays, numberOfDays, numberOfDays, previousDay, previousDay, previousDay, previousDay
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.util.calendar.BusinessCalendar
currentBusinessSchedule, diffBusinessNanos, diffBusinessYear, fractionOfStandardBusinessDay, getBusinessDay, getBusinessDay, getBusinessDay, getBusinessSchedule, getBusinessSchedule, getBusinessSchedule, getDefaultBusinessPeriods, getHolidays, getLastHoliday, isBusinessDay, isBusinessDay, isLastBusinessDayOfMonth, isLastBusinessDayOfWeek, nextBusinessDay, nextBusinessDay, nextBusinessSchedule, nextBusinessSchedule, nextNonBusinessDay, nextNonBusinessDay, previousBusinessDay, previousBusinessDay, previousBusinessSchedule, previousBusinessSchedule, previousNonBusinessDay, previousNonBusinessDay, standardBusinessDayLengthNanos
Methods inherited from interface com.illumon.util.calendar.Calendar
currentDay, dayOfWeek, dayOfWeek, dayOfWeek, daysInRange, daysInRange, diffDay, diffNanos, diffYear, name, nextDay, nextDay, nextDay, nextDay, nextDay, nextDay, numberOfDays, numberOfDays, numberOfDays, numberOfDays, previousDay, previousDay, previousDay, previousDay, previousDay, previousDay, timeZone
-
Constructor Details
-
AbstractBusinessCalendar
public AbstractBusinessCalendar()
-
-
Method Details
-
isBusinessDay
Description copied from interface:BusinessCalendar
Does time occur on a business day?- Specified by:
isBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- true if the date is a business day; false otherwise.
-
isBusinessDay
Description copied from interface:BusinessCalendar
Is the date a business day?- Specified by:
isBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date- Returns:
- true if the date is a business day; false otherwise.
-
isBusinessDay
Description copied from interface:BusinessCalendar
Is the date a business day?- Specified by:
isBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date- Returns:
- true if the date is a business day; false otherwise.
-
isBusinessTime
Description copied from interface:BusinessCalendar
Determines if the specified time is a business time. If the time falls between business periods, false will be returned.- Specified by:
isBusinessTime
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- true if the specified time is a business time; otherwise, false.
-
previousBusinessDay
Description copied from interface:BusinessCalendar
Gets the previous business day.- Specified by:
previousBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the most recent business day before
time
-
previousBusinessDay
Description copied from interface:BusinessCalendar
Gets the business datedays
business days before inputtime
. Ifdays
is zero and the day is not a business day, null is returned.- Specified by:
previousBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days- Returns:
- the business date
days
business days before inputtime
-
previousBusinessDay
Description copied from interface:BusinessCalendar
Gets the previous business day.- Specified by:
previousBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the most recent business day before
date
-
previousBusinessDay
Description copied from interface:BusinessCalendar
Gets the business datedays
business days before inputdate
. Ifdays
is zero and the day is not a business day, null is returned.- Specified by:
previousBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the business date
days
business days before inputdate
-
previousBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the previous business schedule before inputtime
. Assumes implementation of getBusinessSchedule(null) returns null.- Specified by:
previousBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the most recent business schedule before
time
-
previousBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the business scheduledays
days before inputtime
. Assumes implementation of getBusinessSchedule(null) returns null.- Specified by:
previousBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days
-
previousBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the business schedule before inputdate
. Assumes implementation of getBusinessSchedule(null) returns null.- Specified by:
previousBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the most recent business schedule before
date
-
previousBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the business scheduledays
days before inputdate
. Assumes implementation of getBusinessSchedule(null) returns null.- Specified by:
previousBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the business schedule
days
days before inputdate
-
previousNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the previous non-business day.- Specified by:
previousNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the most recent non-business day before
time
-
previousNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the non-business datedays
non-business days before inputtime
. Ifdays
is zero and the day is a business day, null is returned.- Specified by:
previousNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days- Returns:
- the non-business date
days
non-business days before inputtime
-
previousNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the previous non-business day.- Specified by:
previousNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the most recent non-business day before
date
-
previousNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the non-business datedays
non-business days before inputdate
. Ifdays
is zero and the day is a business day, null is returned.- Specified by:
previousNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the non-business date
days
non-business days before inputdate
-
nextBusinessDay
Description copied from interface:BusinessCalendar
Gets the next business day.- Specified by:
nextBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the next business day after
time
-
nextBusinessDay
Description copied from interface:BusinessCalendar
Gets the business datedays
business days after inputtime
. Ifdays
is zero and the day is not a business day, null is returned.- Specified by:
nextBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days- Returns:
- the next business day after
time
-
nextBusinessDay
Description copied from interface:BusinessCalendar
Gets the next business day.- Specified by:
nextBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the next business day after
date
-
nextBusinessDay
Description copied from interface:BusinessCalendar
Gets the business datedays
business days after inputdate
. Ifdays
is zero and the day is not a business day, null is returned.- Specified by:
nextBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the business date
days
business days after inputdate
-
nextBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the next business schedule.- Specified by:
nextBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the next closest business schedule after
time
-
nextBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the business scheduledays
days after inputtime
. Ifdate
is null, assumes the implementation of getBusinessSchedule(null) returns null.- Specified by:
nextBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days- Returns:
- the business schedule
days
aftertime
-
nextBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the next business schedule after inputdate
. Assumes implementation of getBusinessSchedule(null) returns null.- Specified by:
nextBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the next closest business schedule after
date
-
nextBusinessSchedule
Description copied from interface:BusinessCalendar
Gets the business scheduledays
days after inputdate
. Ifdate
is null, assumes the implementation of getBusinessSchedule(null) returns null.- Specified by:
nextBusinessSchedule
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the business schedule
days
afterdate
-
nextNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the next non-business day.- Specified by:
nextNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return null- Returns:
- the next non-business day after
time
-
nextNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the non-business datedays
non-business days after inputtime
. Ifdays
is zero and the day is a business day, null is returned.- Specified by:
nextNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return nulldays
- number of days- Returns:
- the non-business date
days
non-business days after inputtime
-
nextNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the next non-business day.- Specified by:
nextNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return null- Returns:
- the next non-business day after
date
-
nextNonBusinessDay
Description copied from interface:BusinessCalendar
Gets the non-business datedays
non-business days after inputdate
. Ifdays
is zero and the day is a business day, null is returned.- Specified by:
nextNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return nulldays
- number of days- Returns:
- the most recent business day before
time
-
businessDaysInRange
Description copied from interface:BusinessCalendar
Returns the business days betweenstart
andend
, inclusive. Because no time information (e.g., hours, minutes, seconds) is returned, the corresponding days forstart
andend
will be included if they are business days.- Specified by:
businessDaysInRange
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return empty arrayend
- end time; if null, return empty array- Returns:
- inclusive business days between
start
andend
-
businessDaysInRange
Description copied from interface:BusinessCalendar
Returns the business days betweenstart
andend
, inclusive. Because no time information (e.g., hours, minutes, seconds) is returned, the corresponding days forstart
andend
will be included if they are business days.- Specified by:
businessDaysInRange
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return empty arrayend
- end time; if null, return empty array- Returns:
- inclusive business days between
start
andend
-
nonBusinessDaysInRange
Description copied from interface:BusinessCalendar
Returns the non-business days betweenstart
andend
, inclusive. Because no time information (e.g., hours, minutes, seconds) is returned, the corresponding days forstart
andend
will be included if they are non-business days.- Specified by:
nonBusinessDaysInRange
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return empty arrayend
- end time; if null, return empty array- Returns:
- inclusive non-business days between
start
andend
-
nonBusinessDaysInRange
Description copied from interface:BusinessCalendar
Returns the non-business days betweenstart
andend
, inclusive. Because no time information (e.g., hours, minutes, seconds) is returned, the corresponding days forstart
andend
will be included if they are non-business days.- Specified by:
nonBusinessDaysInRange
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return empty arrayend
- end time; if null, return empty array- Returns:
- inclusive non-business days between
start
andend
-
diffNonBusinessNanos
Description copied from interface:BusinessCalendar
Returns the amount of non-business time in nanoseconds betweenstart
andend
.- Specified by:
diffNonBusinessNanos
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_LONGend
- end time; if null, return NULL_LONG- Returns:
- the amount of non-business time in nanoseconds between the
start
andend
-
diffBusinessDay
Description copied from interface:BusinessCalendar
Returns the amount of business time in standard business days betweenstart
andend
.- Specified by:
diffBusinessDay
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_LONGend
- end time; if null, return NULL_LONG- Returns:
- the amount of business time in standard business days between the
start
andend
-
diffNonBusinessDay
Description copied from interface:BusinessCalendar
Returns the amount of non-business time in standard business days betweenstart
andend
.- Specified by:
diffNonBusinessDay
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_LONGend
- end time; if null, return NULL_LONG- Returns:
- the amount of non-business time in standard business days between the
start
andend
-
numberOfBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of business days betweenstart
andend
.- Specified by:
numberOfBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INT- Returns:
- number of business days between the
start
andend
, inclusive and exclusive respectively.
-
numberOfBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of business days betweenstart
andend
.- Specified by:
numberOfBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_LONGend
- end time; if null, return NULL_LONGendInclusive
- whether to treat theend
inclusive or exclusively- Returns:
- number of business days between the
start
andend
, inclusive andendInclusive
respectively.
-
numberOfBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of business days betweenstart
andend
.- Specified by:
numberOfBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INT- Returns:
- number of business days between the
start
andend
, inclusive and exclusive respectively.
-
numberOfBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of business days betweenstart
andend
.- Specified by:
numberOfBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INTendInclusive
- whether to treat theend
inclusive or exclusively- Returns:
- number of business days between the
start
andend
, inclusive andendInclusive
respectively.
-
numberOfNonBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of non-business days betweenstart
andend
.- Specified by:
numberOfNonBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INT- Returns:
- number of business days between the
start
andend
, inclusive and exclusive respectively.
-
numberOfNonBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of non-business days betweenstart
andend
.- Specified by:
numberOfNonBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_LONGend
- end time; if null, return NULL_LONGendInclusive
- whether to treat theend
inclusive or exclusively- Returns:
- number of business days between the
start
andend
, inclusive andendInclusive
respectively.
-
numberOfNonBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of non-business days betweenstart
andend
.- Specified by:
numberOfNonBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INT- Returns:
- number of non-business days between the
start
andend
, inclusive.
-
numberOfNonBusinessDays
Description copied from interface:BusinessCalendar
Returns the number of non-business days betweenstart
andend
.- Specified by:
numberOfNonBusinessDays
in interfaceBusinessCalendar
- Parameters:
start
- start time; if null, return NULL_INTend
- end time; if null, return NULL_INTendInclusive
- whether to treat theend
inclusive or exclusively- Returns:
- number of non-business days between the
start
andend
, inclusive andendInclusive
respectively.
-
fractionOfStandardBusinessDay
Description copied from interface:BusinessCalendar
For the given date, returns the ratio of the business day length and the standard business day length. For example, a holiday has zero business time and will therefore return 0.0. A normal business day will be of the standard length and will therefore return 1.0. A half day holiday will return 0.5.- Specified by:
fractionOfStandardBusinessDay
in interfaceBusinessCalendar
- Parameters:
time
- time; if null, return 0- Returns:
- ratio of the business day length and the standard business day length for the date
- See Also:
BusinessCalendar.fractionOfBusinessDayRemaining(DBDateTime)
-
fractionOfStandardBusinessDay
Description copied from interface:BusinessCalendar
For the given date, returns the ratio of the business day length and the standard business day length. For example, a holiday has zero business time and will therefore return 0.0. A normal business day will be of the standard length and will therefore return 1.0. A half day holiday will return 0.5.- Specified by:
fractionOfStandardBusinessDay
in interfaceBusinessCalendar
- Parameters:
date
- date; if null, return 0- Returns:
- ratio of the business day length and the standard business day length for the date
- See Also:
BusinessCalendar.fractionOfBusinessDayRemaining(DBDateTime)
-
fractionOfBusinessDayRemaining
Description copied from interface:BusinessCalendar
Returns the fraction of the business day remaining after the given time.- Specified by:
fractionOfBusinessDayRemaining
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- the fraction of the day left after
time
; NULL_DOUBLE if time is null
-
fractionOfBusinessDayComplete
Description copied from interface:BusinessCalendar
Returns the fraction of the business day complete by the given time.- Specified by:
fractionOfBusinessDayComplete
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- the fraction of the day complete by
time
; NULL_DOUBLE if time is null
-
isLastBusinessDayOfMonth
Description copied from interface:BusinessCalendar
Is the time on the last business day of the month with business time remaining?- Specified by:
isLastBusinessDayOfMonth
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- true if
time
is on the last business day of the month with business time remaining; false otherwise.
-
isLastBusinessDayOfMonth
Description copied from interface:BusinessCalendar
Is the date the last business day of the month?- Specified by:
isLastBusinessDayOfMonth
in interfaceBusinessCalendar
- Parameters:
date
- date- Returns:
- true if
date
is on the last business day of the month; false otherwise.
-
isLastBusinessDayOfWeek
Description copied from interface:BusinessCalendar
Is the time on the last business day of the week with business time remaining?- Specified by:
isLastBusinessDayOfWeek
in interfaceBusinessCalendar
- Parameters:
time
- time- Returns:
- true if
time
is on the last business day of the week with business time remaining; false otherwise.
-
isLastBusinessDayOfWeek
Description copied from interface:BusinessCalendar
Is the date the last business day of the week?- Specified by:
isLastBusinessDayOfWeek
in interfaceBusinessCalendar
- Parameters:
date
- date- Returns:
- true if
date
is on the last business day of the week; false otherwise.
-