Module holiday::before_after

source ·
Expand description


The BeforeAfterDate trait


  • Trait to determine the next and previous occurrence of dates (successor and predecessor). The next occurrence should include the current date, the previous occurrence should exclude the current date.
  • Determine the first day in a given date’s month
  • Trait to determine if a NaiveDate is the last weekday of the month
  • Determine the last day in a given date’s month