Uses of Class
java.time.temporal.WeekFields
| Package | Description |
|---|---|
| java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
-
Uses of WeekFields in java.time.temporal
Fields in java.time.temporal declared as WeekFields Modifier and Type Field Description static WeekFieldsWeekFields. ISOThe ISO-8601 definition, where a week starts on Monday and the first week has a minimum of 4 days.static WeekFieldsWeekFields. SUNDAY_STARTThe common definition of a week that starts on Sunday and the first week has a minimum of 1 day.Methods in java.time.temporal that return WeekFields Modifier and Type Method Description static WeekFieldsWeekFields. of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek)Obtains an instance ofWeekFieldsfrom the first day-of-week and minimal days.static WeekFieldsWeekFields. of(Locale locale)Obtains an instance ofWeekFieldsappropriate for a locale.