Package com.helixframework.time
Class Weeks
java.lang.Object
com.helixframework.time.Weeks
Utility class for working with weeks.
-
Method Summary
Modifier and TypeMethodDescriptionFinds the current week's start and end dates.findWeekBounds(LocalDate date) Determines the start and end dates of the week containing the given date.
-
Method Details
-
findWeekBounds
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
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
-