val Date.weekBasedYear: Intval DateTime.weekBasedYear: Intval OffsetDateTime.weekBasedYear: Intval ZonedDateTime.weekBasedYear: Int
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
See Also
fun Date.weekBasedYear(settings: WeekSettings): Intfun DateTime.weekBasedYear(settings: WeekSettings): Intfun OffsetDateTime.weekBasedYear(settings: WeekSettings): Intfun ZonedDateTime.weekBasedYear(settings: WeekSettings): Int
The week-based year, calculated using the week definition in settings. This value differs from the regular ISO year when the week number falls in the preceding or following year.
See Also
fun Date.weekBasedYear(locale: <ERROR CLASS>): Intfun DateTime.weekBasedYear(locale: <ERROR CLASS>): Intfun OffsetDateTime.weekBasedYear(locale: <ERROR CLASS>): Intfun ZonedDateTime.weekBasedYear(locale: <ERROR CLASS>): Int
The week-based year, calculated using the week definition associated with the provided locale. This value differs from the regular ISO year when the week number falls in the preceding or following year.
Keep in mind that that the system's calendar settings may differ from that of the default locale on some platforms. To respect the system calendar settings, use WeekSettings.systemDefault instead.
See Also
fun Date.weekBasedYear(locale: Locale): Intfun DateTime.weekBasedYear(locale: Locale): Intfun OffsetDateTime.weekBasedYear(locale: Locale): Intfun ZonedDateTime.weekBasedYear(locale: Locale): Int
The week-based year, calculated using the week definition associated with the provided locale. This value differs from the regular ISO year when the week number falls in the preceding or following year.
Keep in mind that that the system's calendar settings may differ from that of the default locale on some platforms. To respect the system calendar settings, use WeekSettings.systemDefault instead.
See Also