| Modifier and Type | Method and Description |
|---|---|
String[] |
businessDaysInRange(DBDateTime start,
DBDateTime end)
Returns the business days between
start and end,
inclusive. |
String[] |
businessDaysInRange(String start,
String end)
Returns the business days between
start and end,
inclusive. |
default BusinessSchedule |
currentBusinessSchedule()
Gets today's business schedule.
|
double |
diffBusinessDay(DBDateTime start,
DBDateTime end)
Returns the amount of business time in standard business days between
start and end. |
long |
diffBusinessNanos(DBDateTime start,
DBDateTime end)
Returns the amount of business time in nanoseconds between
start and end. |
double |
diffBusinessYear(DBDateTime start,
DBDateTime end)
Returns the number of business years between
start and end. |
double |
diffNonBusinessDay(DBDateTime start,
DBDateTime end)
Returns the amount of non-business time in standard business days between
start and end. |
long |
diffNonBusinessNanos(DBDateTime start,
DBDateTime end)
Returns the amount of non-business time in nanoseconds between
start and end. |
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.
|
default double |
fractionOfStandardBusinessDay()
Returns the ratio of the current day's business day length and the standard business day length.
|
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.
|
BusinessSchedule |
getBusinessDay(DBDateTime time)
Deprecated.
|
BusinessSchedule |
getBusinessDay(LocalDate date)
Deprecated.
|
BusinessSchedule |
getBusinessDay(String date)
Deprecated.
|
BusinessSchedule |
getBusinessSchedule(DBDateTime time)
Gets the indicated business day's schedule.
|
BusinessSchedule |
getBusinessSchedule(LocalDate date)
Gets the indicated business day's schedule.
|
BusinessSchedule |
getBusinessSchedule(String date)
Gets the indicated business day's schedule.
|
default boolean |
isBusinessDay()
Is the current day a business day?
|
boolean |
isBusinessDay(DBDateTime time)
Does time occur on a business day?
|
boolean |
isBusinessDay(LocalDate date)
Is the date a business day?
|
boolean |
isBusinessDay(String date)
Is the date a business day?
|
boolean |
isBusinessTime(DBDateTime time)
Determines if the specified time is a business time.
|
default boolean |
isLastBusinessDayOfMonth()
Is the current day the last business day of the month?
|
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?
|
default boolean |
isLastBusinessDayOfWeek()
Is the current day the last business day of the week?
|
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?
|
default String |
nextBusinessDay()
Gets the next business day.
|
String |
nextBusinessDay(DBDateTime time)
Gets the next business day.
|
String |
nextBusinessDay(DBDateTime time,
int days)
Gets the business date
days business days after input time. |
default String |
nextBusinessDay(int days)
Gets the business date
days business days after the current day. |
String |
nextBusinessDay(String date)
Gets the next business day.
|
String |
nextBusinessDay(String date,
int days)
Gets the business date
days business days after input date. |
default BusinessSchedule |
nextBusinessSchedule()
Gets the next business schedule.
|
BusinessSchedule |
nextBusinessSchedule(DBDateTime time)
Gets the next business schedule.
|
BusinessSchedule |
nextBusinessSchedule(DBDateTime time,
int days)
Gets the business schedule
days days after input time. |
default BusinessSchedule |
nextBusinessSchedule(int days)
Gets the business schedule
days days after the current day. |
BusinessSchedule |
nextBusinessSchedule(String date)
Gets the next business schedule after input
date. |
BusinessSchedule |
nextBusinessSchedule(String date,
int days)
Gets the business schedule
days days after input date. |
default String |
nextNonBusinessDay()
Gets the next non-business day.
|
String |
nextNonBusinessDay(DBDateTime time)
Gets the next non-business day.
|
String |
nextNonBusinessDay(DBDateTime time,
int days)
Gets the non-business date
days non-business days after input time. |
default String |
nextNonBusinessDay(int days)
Gets the non-business date
days non-business days after the current day. |
String |
nextNonBusinessDay(String date)
Gets the next non-business day.
|
String |
nextNonBusinessDay(String date,
int days)
Gets the non-business date
days non-business days after input date. |
String[] |
nonBusinessDaysInRange(DBDateTime start,
DBDateTime end)
Returns the non-business days between
start and end,
inclusive. |
String[] |
nonBusinessDaysInRange(String start,
String end)
Returns the non-business days between
start and end,
inclusive. |
int |
numberOfBusinessDays(DBDateTime start,
DBDateTime end)
Returns the number of business days between
start and end. |
int |
numberOfBusinessDays(DBDateTime start,
DBDateTime end,
boolean endInclusive)
Returns the number of business days between
start and end. |
int |
numberOfBusinessDays(String start,
String end)
Returns the number of business days between
start and end. |
int |
numberOfBusinessDays(String start,
String end,
boolean endInclusive)
Returns the number of business days between
start and end. |
int |
numberOfNonBusinessDays(DBDateTime start,
DBDateTime end)
Returns the number of non-business days between
start and end. |
int |
numberOfNonBusinessDays(DBDateTime start,
DBDateTime end,
boolean endInclusive)
Returns the number of non-business days between
start and end. |
int |
numberOfNonBusinessDays(String start,
String end)
Returns the number of non-business days between
start and end. |
int |
numberOfNonBusinessDays(String start,
String end,
boolean endInclusive)
Returns the number of non-business days between
start and end. |
default String |
previousBusinessDay()
Gets the previous business day.
|
String |
previousBusinessDay(DBDateTime time)
Gets the previous business day.
|
String |
previousBusinessDay(DBDateTime time,
int days)
Gets the business date
days business days before input time. |
default String |
previousBusinessDay(int days)
Gets the business date
days business days before the current day. |
String |
previousBusinessDay(String date)
Gets the previous business day.
|
String |
previousBusinessDay(String date,
int days)
Gets the business date
days business days before input date. |
default BusinessSchedule |
previousBusinessSchedule()
Gets the previous business schedule.
|
BusinessSchedule |
previousBusinessSchedule(DBDateTime time)
Gets the previous business schedule before input
time. |
BusinessSchedule |
previousBusinessSchedule(DBDateTime time,
int days)
Gets the business schedule
days days before input time. |
default BusinessSchedule |
previousBusinessSchedule(int days)
Gets the business schedule
days days before the current day. |
BusinessSchedule |
previousBusinessSchedule(String date)
Gets the business schedule before input
date. |
BusinessSchedule |
previousBusinessSchedule(String date,
int days)
Gets the business schedule
days days before input date. |
default String |
previousNonBusinessDay()
Gets the previous non-business day.
|
String |
previousNonBusinessDay(DBDateTime time)
Gets the previous non-business day.
|
String |
previousNonBusinessDay(DBDateTime time,
int days)
Gets the non-business date
days non-business days before input time. |
default String |
previousNonBusinessDay(int days)
Gets the non-business date
days non-business days before the current day. |
String |
previousNonBusinessDay(String date)
Gets the previous non-business day.
|
String |
previousNonBusinessDay(String date,
int days)
Gets the non-business date
days non-business days before input date. |
long |
standardBusinessDayLengthNanos()
Returns the length of a standard business day in nanoseconds.
|
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, timeZonedefault BusinessSchedule currentBusinessSchedule()
default boolean isBusinessDay()
boolean isBusinessDay(DBDateTime time)
time - timeboolean isBusinessDay(String date)
date - dateboolean isBusinessDay(LocalDate date)
date - dateboolean isBusinessTime(DBDateTime time)
time - timedefault String previousBusinessDay()
default String previousBusinessDay(int days)
days business days before the current day. If days
is zero and today is not a business day, null is returned.days - number of daysdays business days before the current dayString previousBusinessDay(DBDateTime time)
time - time; if null, return nulltimeString previousBusinessDay(DBDateTime time, int days)
days business days before input time. If days
is zero and the day is not a business day, null is returned.time - time; if null, return nulldays - number of daysdays business days before input timeString previousBusinessDay(String date)
date - date; if null, return nulldateString previousBusinessDay(String date, int days)
days business days before input date. If days
is zero and the day is not a business day, null is returned.date - date; if null, return nulldays - number of daysdays business days before input datedefault BusinessSchedule previousBusinessSchedule()
default BusinessSchedule previousBusinessSchedule(int days)
days days before the current day.
Assumes implementation of getBusinessSchedule(null) returns null.days - number of daysdays days before the current dayBusinessSchedule previousBusinessSchedule(DBDateTime time)
time.
Assumes implementation of getBusinessSchedule(null) returns null.time - time; if null, return nulltimeBusinessSchedule previousBusinessSchedule(DBDateTime time, int days)
days days before input time.
Assumes implementation of getBusinessSchedule(null) returns null.time - time; if null, return nulldays - number of daysBusinessSchedule previousBusinessSchedule(String date)
date.
Assumes implementation of getBusinessSchedule(null) returns null.date - date; if null, return nulldateBusinessSchedule previousBusinessSchedule(String date, int days)
days days before input date.
Assumes implementation of getBusinessSchedule(null) returns null.date - date; if null, return nulldays - number of daysdays days before input datedefault String previousNonBusinessDay()
default String previousNonBusinessDay(int days)
days non-business days before the current day. If days
is zero and the day is a business day, null is returned.days - number of daysdays non-business days before the current dayString previousNonBusinessDay(DBDateTime time)
time - time; if null, return nulltimeString previousNonBusinessDay(DBDateTime time, int days)
days non-business days before input time. If days
is zero and the day is a business day, null is returned.time - time; if null, return nulldays - number of daysdays non-business days before input timeString previousNonBusinessDay(String date)
date - date; if null, return nulldateString previousNonBusinessDay(String date, int days)
days non-business days before input date. If days
is zero and the day is a business day, null is returned.date - date; if null, return nulldays - number of daysdays non-business days before input datedefault String nextBusinessDay()
default String nextBusinessDay(int days)
days business days after the current day. If days
is zero and today is not a business day, null is returned.days - number of daysdays business days after the current dayString nextBusinessDay(DBDateTime time)
time - time; if null, return nulltimeString nextBusinessDay(DBDateTime time, int days)
days business days after input time. If days
is zero and the day is not a business day, null is returned.time - time; if null, return nulldays - number of daystimeString nextBusinessDay(String date)
date - date; if null, return nulldateString nextBusinessDay(String date, int days)
days business days after input date. If days
is zero and the day is not a business day, null is returned.date - date; if null, return nulldays - number of daysdays business days after input datedefault BusinessSchedule nextBusinessSchedule()
default BusinessSchedule nextBusinessSchedule(int days)
days days after the current day.
If the current day is null, assumes the implementation of getBusinessSchedule(null) returns null.days - number of daysBusinessSchedule nextBusinessSchedule(DBDateTime time)
time - time; if null, return nulltimeBusinessSchedule nextBusinessSchedule(DBDateTime time, int days)
days days after input time.
If date is null, assumes the implementation of getBusinessSchedule(null) returns null.time - time; if null, return nulldays - number of daysdays after timeBusinessSchedule nextBusinessSchedule(String date)
date.
Assumes implementation of getBusinessSchedule(null) returns null.date - date; if null, return nulldateBusinessSchedule nextBusinessSchedule(String date, int days)
days days after input date.
If date is null, assumes the implementation of getBusinessSchedule(null) returns null.date - date; if null, return nulldays - number of daysdays after datedefault String nextNonBusinessDay()
default String nextNonBusinessDay(int days)
days non-business days after the current day. If days
is zero and the day is a business day, null is returned.days - number of daysdays non-business days after the current dayString nextNonBusinessDay(DBDateTime time)
time - time; if null, return nulltimeString nextNonBusinessDay(DBDateTime time, int days)
days non-business days after input time. If days
is zero and the day is a business day, null is returned.time - time; if null, return nulldays - number of daysdays non-business days after input timeString nextNonBusinessDay(String date)
date - date; if null, return nulldateString nextNonBusinessDay(String date, int days)
days non-business days after input date. If days
is zero and the day is a business day, null is returned.date - date; if null, return nulldays - number of daystimeString[] businessDaysInRange(DBDateTime start, DBDateTime end)
start and end,
inclusive.
Because no time information (e.g., hours, minutes, seconds) is returned,
the corresponding days for start and end will be included
if they are business days.start - start time; if null, return empty arrayend - end time; if null, return empty arraystart and endString[] businessDaysInRange(String start, String end)
start and end,
inclusive.
Because no time information (e.g., hours, minutes, seconds) is returned,
the corresponding days for start and end will be included
if they are business days.start - start time; if null, return empty arrayend - end time; if null, return empty arraystart and endString[] nonBusinessDaysInRange(DBDateTime start, DBDateTime end)
start and end,
inclusive.
Because no time information (e.g., hours, minutes, seconds) is returned,
the corresponding days for start and end will be included
if they are non-business days.start - start time; if null, return empty arrayend - end time; if null, return empty arraystart and endString[] nonBusinessDaysInRange(String start, String end)
start and end,
inclusive.
Because no time information (e.g., hours, minutes, seconds) is returned,
the corresponding days for start and end will be included
if they are non-business days.start - start time; if null, return empty arrayend - end time; if null, return empty arraystart and endlong standardBusinessDayLengthNanos()
long diffBusinessNanos(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGstart and endlong diffNonBusinessNanos(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGstart and enddouble diffBusinessDay(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGstart and enddouble diffNonBusinessDay(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGstart and enddouble diffBusinessYear(DBDateTime start, DBDateTime end)
start and end.start - start; if null, return nullend - end; if null, return nullstart and endint numberOfBusinessDays(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTstart and end, inclusive and exclusive respectively.int numberOfBusinessDays(DBDateTime start, DBDateTime end, boolean endInclusive)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGendInclusive - whether to treat the end inclusive or exclusivelystart and end, inclusive and endInclusive respectively.int numberOfBusinessDays(String start, String end)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTstart and end, inclusive and exclusive respectively.int numberOfBusinessDays(String start, String end, boolean endInclusive)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTendInclusive - whether to treat the end inclusive or exclusivelystart and end, inclusive and endInclusive respectively.int numberOfNonBusinessDays(DBDateTime start, DBDateTime end)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTstart and end, inclusive and exclusive respectively.int numberOfNonBusinessDays(DBDateTime start, DBDateTime end, boolean endInclusive)
start and end.start - start time; if null, return NULL_LONGend - end time; if null, return NULL_LONGendInclusive - whether to treat the end inclusive or exclusivelystart and end, inclusive and endInclusive respectively.int numberOfNonBusinessDays(String start, String end)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTstart and end, inclusive.int numberOfNonBusinessDays(String start, String end, boolean endInclusive)
start and end.start - start time; if null, return NULL_INTend - end time; if null, return NULL_INTendInclusive - whether to treat the end inclusive or exclusivelystart and end, inclusive and endInclusive respectively.default double fractionOfStandardBusinessDay()
BusinessCalendar.fractionOfBusinessDayRemaining(DBDateTime)double fractionOfStandardBusinessDay(DBDateTime time)
time - time; if null, return 0BusinessCalendar.fractionOfBusinessDayRemaining(DBDateTime)double fractionOfStandardBusinessDay(String date)
date - date; if null, return 0BusinessCalendar.fractionOfBusinessDayRemaining(DBDateTime)double fractionOfBusinessDayRemaining(DBDateTime time)
time - timetime; NULL_DOUBLE if time is nulldouble fractionOfBusinessDayComplete(DBDateTime time)
time - timetime; NULL_DOUBLE if time is nullboolean isLastBusinessDayOfMonth(DBDateTime time)
time - timetime is on the last business day of the month with business time remaining; false otherwise.default boolean isLastBusinessDayOfMonth()
date is on the last business day of the month; false otherwise.boolean isLastBusinessDayOfMonth(String date)
date - datedate is on the last business day of the month; false otherwise.default boolean isLastBusinessDayOfWeek()
date is on the last business day of the week; false otherwise.boolean isLastBusinessDayOfWeek(DBDateTime time)
time - timetime is on the last business day of the week with business time remaining; false otherwise.boolean isLastBusinessDayOfWeek(String date)
date - datedate is on the last business day of the week; false otherwise.@Deprecated BusinessSchedule getBusinessDay(DBDateTime time)
time - timetime; null if time is null@Deprecated BusinessSchedule getBusinessDay(String date)
date - datedate@Deprecated BusinessSchedule getBusinessDay(LocalDate date)
date - datedateBusinessSchedule getBusinessSchedule(DBDateTime time)
getBusinessSchedule(null) returns null.time - timetime; null if time is nullBusinessSchedule getBusinessSchedule(String date)
getBusinessSchedule(null) returns null.date - datedateBusinessSchedule getBusinessSchedule(LocalDate date)
getBusinessSchedule(null) returns null.date - datedate