Skip to content

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

Notifications You must be signed in to change notification settings

mrwilson/java-working-days

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

85 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages