core / io.islandtime.operators / weekInterval

weekInterval

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) val DateTime.weekInterval: DateTimeInterval

The interval of 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) val OffsetDateTime.weekInterval: OffsetDateTimeInterval

The interval of the ISO week that this date-time falls within. The offset will be preserved in both the start and end date-times

The ISO week starts on Monday and ends on Sunday.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) val ZonedDateTime.weekInterval: ZonedDateTimeInterval

The interval of the ISO week that this date-time falls within. The zone will be preserved in both the start and end date-times.

The ISO week starts on Monday and ends on Sunday.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.weekInterval(settings: WeekSettings): DateTimeInterval

The interval of the week that this date-time falls within. The first day of the week will be determined by settings.

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.weekInterval(locale: <ERROR CLASS>): DateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.weekInterval(settings: WeekSettings): OffsetDateTimeInterval

The interval of the week that this date-time falls within. The first day of the week will be determined by settings. The offset will be preserved in both the start and end date-times.

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.weekInterval(locale: <ERROR CLASS>): OffsetDateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale. The offset will be preserved in both the start and end date-times.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.weekInterval(settings: WeekSettings): ZonedDateTimeInterval

The interval of the week that this date-time falls within. The first day of the week will be determined by settings. The zone will be preserved in both the start and end date-times.

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.weekInterval(locale: <ERROR CLASS>): ZonedDateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale. The zone will be preserved in both the start and end date-times.

(jvm) fun DateTime.weekInterval(locale: Locale): DateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale.

(jvm) fun OffsetDateTime.weekInterval(locale: Locale): OffsetDateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale. The offset will be preserved in both the start and end date-times.

(jvm) fun ZonedDateTime.weekInterval(locale: Locale): ZonedDateTimeInterval

The interval of the week that this date falls within. The first day of the week will be determined by locale. The zone will be preserved in both the start and end date-times.