BusinessDayExt extension
Extension providing business day calculations.
- on
Methods
-
addBusinessDays(
int days, [BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Adds the specified number of business days. -
businessDaysBetween(
Hora other, [BusinessDayConfig config = BusinessDayConfig.standard]) → int -
Available on Hora, provided by the BusinessDayExt extension
Returns the number of business days between this andother. -
endOfBusinessWeek(
[BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Returns the end of the business week. -
isBusinessDay(
[BusinessDayConfig config = BusinessDayConfig.standard]) → bool -
Available on Hora, provided by the BusinessDayExt extension
Checks if this date is a business day. -
isHoliday(
[HolidayCalendar? calendar]) → bool -
Available on Hora, provided by the BusinessDayExt extension
Checks if this date is a holiday. -
isWeekendDay(
[BusinessDayConfig config = BusinessDayConfig.standard]) → bool -
Available on Hora, provided by the BusinessDayExt extension
Checks if this date is a weekend. -
nearestBusinessDay(
[BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Returns the nearest business day. -
nextBusinessDay(
[BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Returns the next business day. -
previousBusinessDay(
[BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Returns the previous business day. -
startOfBusinessWeek(
[BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Returns the start of the business week. -
subtractBusinessDays(
int days, [BusinessDayConfig config = BusinessDayConfig.standard]) → Hora -
Available on Hora, provided by the BusinessDayExt extension
Subtracts the specified number of business days.