A set of convenience operators for various date-time primitives, enabling things like date.next(TUESDAY), date.startOfWeek, or dateTime.truncatedTo(HOURS).
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
endOfMonth |
The date at the end of the month that this date falls in. val Date.endOfMonth: Date
The date-time at the last representable instant of the month that this date-time falls in. val DateTime.endOfMonth: DateTimeval OffsetDateTime.endOfMonth: OffsetDateTimeval ZonedDateTime.endOfMonth: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
endOfWeek |
The date at the end of the ISO week that this date falls in. val Date.endOfWeek: Date
The date-time at the last representable instant of the ISO week that this date-time falls in. val DateTime.endOfWeek: DateTimeval OffsetDateTime.endOfWeek: OffsetDateTimeval ZonedDateTime.endOfWeek: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
endOfYear |
The date at the end of the year that this date falls in. val Date.endOfYear: Date
The date-time at the last representable instant of the year that this date-time falls in. val DateTime.endOfYear: DateTimeval OffsetDateTime.endOfYear: OffsetDateTimeval ZonedDateTime.endOfYear: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
startOfMonth |
The date at the start of the month that this date falls in. val Date.startOfMonth: Date
The date-time at the first instant of the month that this date-time falls in. val DateTime.startOfMonth: DateTimeval OffsetDateTime.startOfMonth: OffsetDateTimeval ZonedDateTime.startOfMonth: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
startOfWeek |
The date at the start of the ISO week that this date falls in. val Date.startOfWeek: Date
The date-time at the first instant of the ISO week that this date-time falls in. val DateTime.startOfWeek: DateTimeval OffsetDateTime.startOfWeek: OffsetDateTimeval ZonedDateTime.startOfWeek: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
startOfYear |
The date at the start of the year that this date falls in. val Date.startOfYear: Date
The date-time at the first instant of the year that this date-time falls in. val DateTime.startOfYear: DateTimeval OffsetDateTime.startOfYear: OffsetDateTimeval ZonedDateTime.startOfYear: ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
weekInterval |
val DateTime.val OffsetDateTime.val ZonedDateTime. |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
weekRange |
val Date. |
endOfWeek |
The date at the end of the week that this date falls in. The first day of the week will be determined by locale. (jvm)fun Date.endOfWeek(locale: Locale): Date(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Date.endOfWeek(locale: <ERROR CLASS>): Date
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by locale. (jvm)fun DateTime.endOfWeek(locale: Locale): DateTime(jvm) fun OffsetDateTime.endOfWeek(locale: Locale): OffsetDateTime(jvm) fun ZonedDateTime.endOfWeek(locale: Locale): ZonedDateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.endOfWeek(locale: <ERROR CLASS>): DateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.endOfWeek(locale: <ERROR CLASS>): OffsetDateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.endOfWeek(locale: <ERROR CLASS>): ZonedDateTime
The date at the end of the week that this date falls in. The first day of the week will be determined by settings. The first day of the week will be determined by the system settings. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.endOfWeek(settings: WeekSettings): Date
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun DateTime.endOfWeek(settings: WeekSettings): DateTime
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by the user's system settings. This may differ from the first day of the week associated with the default locale on platforms that allow the user to customize this. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun OffsetDateTime.endOfWeek(settings: WeekSettings): OffsetDateTime(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.endOfWeek(settings: WeekSettings): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
next |
The next date after this one that falls on a particular day of the week. fun Date.next(dayOfWeek: DayOfWeek): Date
The next date-time after this one that falls on a particular day of the week. fun DateTime.next(dayOfWeek: DayOfWeek): DateTimefun OffsetDateTime.next(dayOfWeek: DayOfWeek): OffsetDateTimefun ZonedDateTime.next(dayOfWeek: DayOfWeek): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
nextOrSame |
The next date that falls on a particular day of the week, or this one if it falls on the same day. fun Date.nextOrSame(dayOfWeek: DayOfWeek): Date
The next date-time that falls on a particular day of the week, or this one if it falls on the same day. fun DateTime.nextOrSame(dayOfWeek: DayOfWeek): DateTimefun OffsetDateTime.nextOrSame(dayOfWeek: DayOfWeek): OffsetDateTimefun ZonedDateTime.nextOrSame(dayOfWeek: DayOfWeek): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
previous |
The last date before this one that falls on a particular day of the week. fun Date.previous(dayOfWeek: DayOfWeek): Date
The last date-time before this one that falls on a particular day of the week. fun DateTime.previous(dayOfWeek: DayOfWeek): DateTimefun OffsetDateTime.previous(dayOfWeek: DayOfWeek): OffsetDateTimefun ZonedDateTime.previous(dayOfWeek: DayOfWeek): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
previousOrSame |
The last date that falls on a particular day of the week, or this one if it falls on the same day. fun Date.previousOrSame(dayOfWeek: DayOfWeek): Date
The last date-time that falls on a particular day of the week, or this one if it falls on the same day. fun DateTime.previousOrSame(dayOfWeek: DayOfWeek): DateTimefun OffsetDateTime.previousOrSame(dayOfWeek: DayOfWeek): OffsetDateTimefun ZonedDateTime.previousOrSame(dayOfWeek: DayOfWeek): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedDownTo |
Return this time, rounded down to match the precision of a given unit. fun Time.roundedDownTo(unit: TimeUnit): Timefun OffsetTime.roundedDownTo(unit: TimeUnit): OffsetTime
Return this date-time, rounded down to match the precision of a given unit. fun DateTime.roundedDownTo(unit: TimeUnit): DateTimefun OffsetDateTime.roundedDownTo(unit: TimeUnit): OffsetDateTimefun ZonedDateTime.roundedDownTo(unit: TimeUnit): ZonedDateTime
Return this instant, rounded down to match the precision of a given unit. fun Instant.roundedDownTo(unit: TimeUnit): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedDownToNearest |
Return this time, rounded down to the nearest hour that satisfies the increment. fun Time.roundedDownToNearest(increment: IntHours): Timefun OffsetTime.roundedDownToNearest(increment: IntHours): OffsetTime
Return this time, rounded down to the nearest minute that satisfies the increment. fun Time.roundedDownToNearest(increment: IntMinutes): Timefun OffsetTime.roundedDownToNearest(increment: IntMinutes): OffsetTime
Return this time, rounded down to the nearest second that satisfies the increment. fun Time.roundedDownToNearest(increment: IntSeconds): Timefun OffsetTime.roundedDownToNearest(increment: IntSeconds): OffsetTime
Return this time, rounded down to the nearest millisecond that satisfies the increment. fun Time.roundedDownToNearest(increment: IntMilliseconds): Timefun OffsetTime.roundedDownToNearest(increment: IntMilliseconds): OffsetTime
Return this time, rounded down to the nearest microsecond that satisfies the increment. fun Time.roundedDownToNearest(increment: IntMicroseconds): Timefun OffsetTime.roundedDownToNearest(increment: IntMicroseconds): OffsetTime
Return this time, rounded down to the nearest nanosecond that satisfies the increment. fun Time.roundedDownToNearest(increment: IntNanoseconds): Timefun OffsetTime.roundedDownToNearest(increment: IntNanoseconds): OffsetTime
Return this date-time, rounded down to the nearest hour that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntHours): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntHours): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntHours): ZonedDateTime
Return this date-time, rounded down to the nearest minute that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntMinutes): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntMinutes): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntMinutes): ZonedDateTime
Return this date-time, rounded down to the nearest second that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntSeconds): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntSeconds): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntSeconds): ZonedDateTime
Return this date-time, rounded down to the nearest millisecond that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntMilliseconds): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntMilliseconds): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntMilliseconds): ZonedDateTime
Return this date-time, rounded down to the nearest microsecond that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntMicroseconds): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntMicroseconds): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntMicroseconds): ZonedDateTime
Return this date-time, rounded down to the nearest nanosecond that satisfies the increment. fun DateTime.roundedDownToNearest(increment: IntNanoseconds): DateTimefun OffsetDateTime.roundedDownToNearest(increment: IntNanoseconds): OffsetDateTimefun ZonedDateTime.roundedDownToNearest(increment: IntNanoseconds): ZonedDateTime
Return this instant, rounded down to the nearest hour that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntHours): Instant
Return this instant, rounded down to the nearest minute that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntMinutes): Instant
Return this instant, rounded down to the nearest second that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntSeconds): Instant
Return this instant, rounded down to the nearest millisecond that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntMilliseconds): Instant
Return this instant, rounded down to the nearest microsecond that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntMicroseconds): Instant
Return this instant, rounded down to the nearest nanosecond that satisfies the increment. fun Instant.roundedDownToNearest(increment: IntNanoseconds): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedTo |
Return this time, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up. fun Time.roundedTo(unit: TimeUnit): Timefun OffsetTime.roundedTo(unit: TimeUnit): OffsetTime
Return this date-time, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up. fun DateTime.roundedTo(unit: TimeUnit): DateTimefun OffsetDateTime.roundedTo(unit: TimeUnit): OffsetDateTimefun ZonedDateTime.roundedTo(unit: TimeUnit): ZonedDateTime
Return this instant, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up. fun Instant.roundedTo(unit: TimeUnit): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedToNearest |
Return this time, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntHours): Timefun OffsetTime.roundedToNearest(increment: IntHours): OffsetTime
Return this time, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntMinutes): Timefun OffsetTime.roundedToNearest(increment: IntMinutes): OffsetTime
Return this time, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntSeconds): Timefun OffsetTime.roundedToNearest(increment: IntSeconds): OffsetTime
Return this time, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntMilliseconds): Timefun OffsetTime.roundedToNearest(increment: IntMilliseconds): OffsetTime
Return this time, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntMicroseconds): Timefun OffsetTime.roundedToNearest(increment: IntMicroseconds): OffsetTime
Return this time, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Time.roundedToNearest(increment: IntNanoseconds): Timefun OffsetTime.roundedToNearest(increment: IntNanoseconds): OffsetTime
Return this date-time, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntHours): DateTimefun OffsetDateTime.roundedToNearest(increment: IntHours): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntHours): ZonedDateTime
Return this date-time, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntMinutes): DateTimefun OffsetDateTime.roundedToNearest(increment: IntMinutes): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntMinutes): ZonedDateTime
Return this date-time, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntSeconds): DateTimefun OffsetDateTime.roundedToNearest(increment: IntSeconds): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntSeconds): ZonedDateTime
Return this date-time, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntMilliseconds): DateTimefun OffsetDateTime.roundedToNearest(increment: IntMilliseconds): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntMilliseconds): ZonedDateTime
Return this date-time, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntMicroseconds): DateTimefun OffsetDateTime.roundedToNearest(increment: IntMicroseconds): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntMicroseconds): ZonedDateTime
Return this date-time, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun DateTime.roundedToNearest(increment: IntNanoseconds): DateTimefun OffsetDateTime.roundedToNearest(increment: IntNanoseconds): OffsetDateTimefun ZonedDateTime.roundedToNearest(increment: IntNanoseconds): ZonedDateTime
Return this instant, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntHours): Instant
Return this instant, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntMinutes): Instant
Return this instant, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntSeconds): Instant
Return this instant, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntMilliseconds): Instant
Return this instant, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntMicroseconds): Instant
Return this instant, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up. fun Instant.roundedToNearest(increment: IntNanoseconds): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedUpTo |
Return this time, rounded up to match the precision of a given unit. fun Time.roundedUpTo(unit: TimeUnit): Timefun OffsetTime.roundedUpTo(unit: TimeUnit): OffsetTime
Return this date-time, rounded up to match the precision of a given unit. fun DateTime.roundedUpTo(unit: TimeUnit): DateTimefun OffsetDateTime.roundedUpTo(unit: TimeUnit): OffsetDateTimefun ZonedDateTime.roundedUpTo(unit: TimeUnit): ZonedDateTime
Return this instant, rounded up to match the precision of a given unit. fun Instant.roundedUpTo(unit: TimeUnit): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
roundedUpToNearest |
Return this time, rounded up to the nearest hour that satisfies the increment. fun Time.roundedUpToNearest(increment: IntHours): Timefun OffsetTime.roundedUpToNearest(increment: IntHours): OffsetTime
Return this time, rounded up to the nearest minute that satisfies the increment. fun Time.roundedUpToNearest(increment: IntMinutes): Timefun OffsetTime.roundedUpToNearest(increment: IntMinutes): OffsetTime
Return this time, rounded up to the nearest second that satisfies the increment. fun Time.roundedUpToNearest(increment: IntSeconds): Timefun OffsetTime.roundedUpToNearest(increment: IntSeconds): OffsetTime
Return this time, rounded up to the nearest millisecond that satisfies the increment. fun Time.roundedUpToNearest(increment: IntMilliseconds): Timefun OffsetTime.roundedUpToNearest(increment: IntMilliseconds): OffsetTime
Return this time, rounded up to the nearest microsecond that satisfies the increment. fun Time.roundedUpToNearest(increment: IntMicroseconds): Timefun OffsetTime.roundedUpToNearest(increment: IntMicroseconds): OffsetTime
Return this time, rounded up to the nearest nanosecond that satisfies the increment. fun Time.roundedUpToNearest(increment: IntNanoseconds): Timefun OffsetTime.roundedUpToNearest(increment: IntNanoseconds): OffsetTime
Return this date-time, rounded up to the nearest hour that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntHours): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntHours): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntHours): ZonedDateTime
Return this date-time, rounded up to the nearest minute that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntMinutes): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntMinutes): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntMinutes): ZonedDateTime
Return this date-time, rounded up to the nearest second that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntSeconds): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntSeconds): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntSeconds): ZonedDateTime
Return this date-time, rounded up to the nearest millisecond that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntMilliseconds): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntMilliseconds): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntMilliseconds): ZonedDateTime
Return this date-time, rounded up to the nearest microsecond that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntMicroseconds): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntMicroseconds): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntMicroseconds): ZonedDateTime
Return this date-time, rounded up to the nearest nanosecond that satisfies the increment. fun DateTime.roundedUpToNearest(increment: IntNanoseconds): DateTimefun OffsetDateTime.roundedUpToNearest(increment: IntNanoseconds): OffsetDateTimefun ZonedDateTime.roundedUpToNearest(increment: IntNanoseconds): ZonedDateTime
Return this instant, rounded up to the nearest hour that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntHours): Instant
Return this instant, rounded up to the nearest minute that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntMinutes): Instant
Return this instant, rounded up to the nearest second that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntSeconds): Instant
Return this instant, rounded up to the nearest millisecond that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntMilliseconds): Instant
Return this instant, rounded up to the nearest microsecond that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntMicroseconds): Instant
Return this instant, rounded up to the nearest nanosecond that satisfies the increment. fun Instant.roundedUpToNearest(increment: IntNanoseconds): Instant |
startOfWeek |
The date at the start of the week that this date falls in. The first day of the week will be determined by locale. (jvm)fun Date.startOfWeek(locale: Locale): Date(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Date.startOfWeek(locale: <ERROR CLASS>): Date
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by locale. (jvm)fun DateTime.startOfWeek(locale: Locale): DateTime(jvm) fun OffsetDateTime.startOfWeek(locale: Locale): OffsetDateTime(jvm) fun ZonedDateTime.startOfWeek(locale: Locale): ZonedDateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.startOfWeek(locale: <ERROR CLASS>): DateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.startOfWeek(locale: <ERROR CLASS>): OffsetDateTime(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.startOfWeek(locale: <ERROR CLASS>): ZonedDateTime
The date at the start of the week that this date falls in. The first day of the week will be determined by settings. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.startOfWeek(settings: WeekSettings): Date
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun DateTime.startOfWeek(settings: WeekSettings): DateTime
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the user's system settings. This may differ from the first day of the week associated with the default locale on platforms that allow the user to customize this. (iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun OffsetDateTime.startOfWeek(settings: WeekSettings): OffsetDateTime(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.startOfWeek(settings: WeekSettings): ZonedDateTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedTo |
Return this time, rounded down to match the precision of a given unit. fun Time.truncatedTo(unit: TimeUnit): Timefun OffsetTime.truncatedTo(unit: TimeUnit): OffsetTime
Return this date-time, rounded down to match the precision of a given unit. fun DateTime.truncatedTo(unit: TimeUnit): DateTimefun OffsetDateTime.truncatedTo(unit: TimeUnit): OffsetDateTimefun ZonedDateTime.truncatedTo(unit: TimeUnit): ZonedDateTime
Return this instant, rounded down to match the precision of a given unit. fun Instant.truncatedTo(unit: TimeUnit): Instant |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedToHours |
Return a copy of this time, truncated to the fun Time.fun OffsetTime.
Return a copy of this date-time, truncated to the fun DateTime.fun ZonedDateTime.fun OffsetDateTime. |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedToMicroseconds |
Return a copy of this time with the fun Time.fun OffsetTime.
Return a copy of this date-time with the fun DateTime.fun ZonedDateTime.fun OffsetDateTime. |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedToMilliseconds |
Return a copy of this time with the fun Time.fun OffsetTime.
Return a copy of this date-time with the fun DateTime.fun ZonedDateTime.fun OffsetDateTime. |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedToMinutes |
Return a copy of this time, truncated to the fun Time.
Return a copy of this date-time, truncated to the fun DateTime.fun OffsetDateTime.
Return a copy of this date-time, truncated to the fun ZonedDateTime.
Return a copy of this time, truncated to the fun OffsetTime. |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
truncatedToSeconds |
Return a copy of this time, truncated to the fun Time.fun OffsetTime.
Return a copy of this date-time, truncated to the fun DateTime.fun ZonedDateTime.fun OffsetDateTime. |
weekInterval |
(jvm) fun DateTime.(jvm) fun OffsetDateTime.(jvm) fun ZonedDateTime.(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime. |
weekRange |
(jvm) fun Date.(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Date.(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Date. |