Documentation for a newer release is available. View Latest
Esta página no está disponible actualmente en Español. Si lo necesita, póngase en contacto con el servicio de asistencia de Icon (correo electrónico)

Business Day Calculator

This module provides a business day calculator excluding weekend days and known holidays such as:

  • New years day

  • May day

  • Good Friday

  • Easter Monday

  • Christmas

  • Boxing day

It is also possible to provide a custom list of holidays by configuration.

Easter is calculated based on the Gregorian algorithm.

The calculator determines a list of dates, starting from a provided date and continuing for the specified number of business days.

public List<LocalDate> getNextBusinessDays(LocalDateTime start, int noOfDays)

Maven Dependency

<dependency>
    <groupId>com.iconsolutions.ipf.payments.csm.sepact</groupId>
    <artifactId>sepact-business-days-calculator</artifactId>
</dependency>

Business Days Calculator Configuration

Config

Type

Comment

Default

ipf.csm.sepa-ct.calendar.holidays

List of String

Can pass a list into this in the following format: ["2019-04-05", "04-05"] "2019-04-05"- Contains year, month, day. The holiday will be set for only the specified year "04-05" - Contains month and day without year. The holiday will be set for the year when the method is executed

[]

ipf.csm.sepa-ct.calendar.disable-known-holidays

boolean

By default, known holidays will be enabled. If disable = true, then they must be added to the list of holidays. These dates are:

1. New years day

2. May day

3. Good Friday

4. Easter Monday

5. Christmas

6. Boxing day

false