val Date.week: DateRange
The range defining the ISO week that this date falls within.
The ISO week starts on Monday and ends on Sunday.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)val DateTime.week: DateTimeIntervalval OffsetDateTime.week: OffsetDateTimeIntervalval ZonedDateTime.week: ZonedDateTimeInterval
The interval defining the ISO week that this date-time falls within.
The ISO week starts on Monday and ends on Sunday.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.week(settings: WeekSettings): DateRange
The range defining the week that this date falls within. The first day of the week will be determined by the provided settings.
(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.week(locale: <ERROR CLASS>): DateRange
The range defining the week that this date falls within. The first day of the week will be the default associated with the provided locale.
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.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun DateTime.week(settings: WeekSettings): DateTimeIntervalfun OffsetDateTime.week(settings: WeekSettings): OffsetDateTimeIntervalfun ZonedDateTime.week(settings: WeekSettings): ZonedDateTimeInterval
The interval defining the week that this date-time falls within. The first day of the week will be determined by the provided settings.
(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun DateTime.week(locale: <ERROR CLASS>): DateTimeIntervalfun OffsetDateTime.week(locale: <ERROR CLASS>): OffsetDateTimeIntervalfun ZonedDateTime.week(locale: <ERROR CLASS>): ZonedDateTimeInterval
The interval defining the week that this date-time falls within. The first day of the week will be the default associated with the provided locale.
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.
(jvm)fun Date.week(locale: Locale): DateRange
The range defining the week that this date falls within. The first day of the week will be the default associated with the provided locale.
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.
(jvm)fun DateTime.week(locale: Locale): DateTimeIntervalfun OffsetDateTime.week(locale: Locale): OffsetDateTimeIntervalfun ZonedDateTime.week(locale: Locale): ZonedDateTimeInterval
The interval defining the week that this date-time falls within. The first day of the week will be the default associated with the provided locale.
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.