//core/io.islandtime/weekBasedYear
weekBasedYear¶
common
fun Date.weekBasedYear(settings: WeekSettings): Int
fun DateTime.weekBasedYear(settings: WeekSettings): Int
fun OffsetDateTime.weekBasedYear(settings: WeekSettings): Int
fun 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¶
weekOfWeekBasedYear |
common
fun Date.weekBasedYear(locale: Locale): Int
fun DateTime.weekBasedYear(locale: Locale): Int
fun OffsetDateTime.weekBasedYear(locale: Locale): Int
fun 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 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¶
weekOfWeekBasedYear |
common
val Date.weekBasedYear: Int
val DateTime.weekBasedYear: Int
val OffsetDateTime.weekBasedYear: Int
val 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¶
weekOfWeekBasedYear |