object WeekFields extends Serializable
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- WeekFields
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ISO: WeekFields
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.
- val SUNDAY_START: WeekFields
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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def of(firstDayOfWeek: DayOfWeek, minimalDaysInFirstWeek: Int): WeekFields
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
andminimalDaysInFirstWeek
the the same instance will be returned.- firstDayOfWeek
the first day of the week, not null
- minimalDaysInFirstWeek
the minimal number of days in the first week, from 1 to 7
- returns
the week-definition, not null
- Exceptions thrown
IllegalArgumentException
if the minimal days value is less than one or greater than 7
- def of(locale: Locale): WeekFields
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.
- locale
the locale to use, not null
- returns
the week-definition, not null
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()