The ISO-8601 definition, where a week starts on Monday and the first week has a minimum of 4 days.
The ISO-8601 definition, where a week starts on Monday and the first week has a minimum of 4 days.
The ISO-8601 standard defines a calendar system based on weeks. It uses the week-based-year and week-of-week-based-year concepts to split up the passage of days instead of the standard year/month/day.
Note that the first week may start in the previous calendar year. Note also that the first few days of a calendar year may be in the week-based-year corresponding to the previous calendar year.
The common definition of a week that starts on Sunday.
The common definition of a week that starts on Sunday.
Defined as starting on Sunday and with a minimum of 1 day in the month. This week definition is in use in the US and other European countries.
Obtains an instance of WeekFields
from the first day-of-week and minimal days.
Obtains an instance of WeekFields
from the first day-of-week and minimal days.
The first day-of-week defines the ISO DayOfWeek
that is day 1 of the week.
The minimal number of days in the first week defines how many days must be present
in a month or year, starting from the first day-of-week, before the week is counted
as the first week. A value of 1 will count the first day of the month or year as part
of the first week, whereas a value of 7 will require the whole seven days to be in
the new month or year.
WeekFields instances are singletons; for each unique combination
of firstDayOfWeek
and minimalDaysInFirstWeek
the
the same instance will be returned.
the first day of the week, not null
the minimal number of days in the first week, from 1 to 7
the week-definition, not null
IllegalArgumentException
if the minimal days value is less than one
or greater than 7
Obtains an instance of WeekFields
appropriate for a locale.
Obtains an instance of WeekFields
appropriate for a locale.
This will look up appropriate values from the provider of localization data.
the locale to use, not null
the week-definition, not null