Class Weeks

java.lang.Object
com.helixframework.time.Weeks

public final class Weeks extends Object
Utility class for working with weeks.
  • Method Details

    • findWeekBounds

      public static io.vavr.Tuple2<LocalDate,LocalDate> findWeekBounds(LocalDate date)
      Determines the start and end dates of the week containing the given date.
      Parameters:
      date - the date for which to find the week bounds
      Returns:
      a Tuple2 containing the start date (Sunday) and end date (Saturday) of the week
    • findCurrentWeekBounds

      public static io.vavr.Tuple2<LocalDate,LocalDate> findCurrentWeekBounds()
      Finds the current week's start and end dates.
      Returns:
      a Tuple2 containing the start date (Sunday) and end date (Saturday) of the current week