mrwilson / java-working-days

🌍 πŸ—“οΈ A small library to calculate working days between dates for multiple countries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-working-days

Build Status Code style: google-1.7

What date is N working days after date X?

Under Development - Caveat Emptor

Examples

The java-working-days library exposes three methods as partial inverses to each-other.

import static uk.co.probablyfine.time.calendars.HolidayCalendar.ENGLAND_AND_WALES;

WorkingDays workingDays = WorkingDays.usingCalendar(ENGLAND_AND_WALES);

workingDays.daysAfter(LocalDate.of(2019, 1, 1), 10);
// LocalDate[2019, 1, 16]

workingDays.daysBefore(LocalDate.of(2019, 1, 16), 10)
// LocalDate[2019, 1, 1]

workingDays.daysBetween(LocalDate.of(2019, 1, 16), LocalDate.of(2019, 1, 1))
// 10

Supported Calendars

  • England & Wales
  • United States
  • Scotland
  • Northern Ireland
  • France

About

🌍 πŸ—“οΈ A small library to calculate working days between dates for multiple countries


Languages

Language:Java 100.0%