Skip to content

Convenience code for handling dates counting and including counting business days and US federal holidays.

License

Notifications You must be signed in to change notification settings

jimador/fun-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fun with java.time

Convenience code for handling date counting and including counting business days and US federal holidays.

Sample

    @Test
    public void totalBuisnessDaysBetween() {
        LocalDate start = LocalDate.of(2018, 1, 1);
        LocalDate end = LocalDate.of(2018, 12, 31);

        Assert.assertThat(MoreDates.totalBusinessDaysBetween(start, end), is(251));
    }

TODO:

  • Add more tests
  • Error handling when startDate > endDate, nulls, etc...
  • add more docs
  • add JMH benchmarks
  • Why stop with US Federal Holidays when there are so many others! Add support for US State and Local too!

About

Convenience code for handling dates counting and including counting business days and US federal holidays.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published