This project contains classes for managing some polish (and not only) feast and days off.
git clone https://github.com/swojcicki/polish-date-utils.git
cd polish-date-utils
mvn clean install
<dependency>
<groupId>io.github.swojcicki</groupId>
<artifactId>polish-date-utils</artifactId>
<version>2.0</version>
</dependency>
This class counts Easter date for given year using updated Gauss algorithm.
Easter.of(2020).getDate(); // returns 2020-04-12, Easter date
IntStream.range(2020, 2030)
.mapToObj(year -> (year + " " + Easter.of(year).getDate()))
.forEach(System.out::println);
This class contains moveable feast dates for given year or given Easter object. Feast dates depends on Easter date.
MoveableFeast moveableFeast = MoveableFeast.of(2020);
moveableFeast.getAshWednesday(); // returns date 46 days before Easter