class OffsetTime
A time of day with an offset from UTC.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init> |
Creates an OffsetTime. <init>(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0, offset: UtcOffset)
Creates an OffsetTime by combining a Time and UtcOffset. <init>(time: Time, offset: UtcOffset) |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
hour |
The hour of the day. val hour: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
minute |
The minute of the hour. val minute: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
nanosecond |
The nanosecond of the second. val nanosecond: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
nanosecondsSinceStartOfUtcDay |
The number of nanoseconds since the start of the day, but normalized to a UTC offset of zero, allowing OffsetTime objects with different offsets to be compared. val nanosecondsSinceStartOfUtcDay: LongNanoseconds |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
offset |
The offset from UTC. val offset: UtcOffset |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
second |
The second of the minute. val second: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
time |
The time of day. val time: Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
adjustedTo |
Changes the offset of this OffsetTime, adjusting the time component such that the instant represented by it remains the same. fun adjustedTo(newOffset: UtcOffset): OffsetTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
compareTo |
Compares to another OffsetTime based on timeline order, ignoring offset differences. operator fun compareTo(other: OffsetTime): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
copy |
Returns a copy of this time with the values of any individual components replaced by the new values specified. fun copy(time: Time = this.time, offset: UtcOffset = this.offset): OffsetTimefun copy(hour: Int = this.hour, minute: Int = this.minute, second: Int = this.second, nanosecond: Int = this.nanosecond, offset: UtcOffset = this.offset): OffsetTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
equals |
fun equals(other: Any?): Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
hashCode |
fun hashCode(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
minus |
operator fun minus(duration: Duration): OffsetTimeoperator fun minus(hours: LongHours): OffsetTimeoperator fun minus(hours: IntHours): OffsetTimeoperator fun minus(minutes: LongMinutes): OffsetTimeoperator fun minus(minutes: IntMinutes): OffsetTimeoperator fun minus(seconds: LongSeconds): OffsetTimeoperator fun minus(seconds: IntSeconds): OffsetTimeoperator fun minus(milliseconds: LongMilliseconds): OffsetTimeoperator fun minus(milliseconds: IntMilliseconds): OffsetTimeoperator fun minus(microseconds: LongMicroseconds): OffsetTimeoperator fun minus(microseconds: IntMicroseconds): OffsetTimeoperator fun minus(nanoseconds: LongNanoseconds): OffsetTimeoperator fun minus(nanoseconds: IntNanoseconds): OffsetTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
plus |
operator fun plus(duration: Duration): OffsetTimeoperator fun plus(hours: LongHours): OffsetTimeoperator fun plus(hours: IntHours): OffsetTimeoperator fun plus(minutes: LongMinutes): OffsetTimeoperator fun plus(minutes: IntMinutes): OffsetTimeoperator fun plus(seconds: LongSeconds): OffsetTimeoperator fun plus(seconds: IntSeconds): OffsetTimeoperator fun plus(milliseconds: LongMilliseconds): OffsetTimeoperator fun plus(milliseconds: IntMilliseconds): OffsetTimeoperator fun plus(microseconds: LongMicroseconds): OffsetTimeoperator fun plus(microseconds: IntMicroseconds): OffsetTimeoperator fun plus(nanoseconds: LongNanoseconds): OffsetTimeoperator fun plus(nanoseconds: IntNanoseconds): OffsetTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toString |
Converts this time to a string in ISO-8601 extended format. For example, fun toString(): String |
DEFAULT_SORT_ORDER |
Compares by UTC equivalent instant, then time. Using this val DEFAULT_SORT_ORDER: <ERROR CLASS>(jvm) val DEFAULT_SORT_ORDER: Comparator<OffsetTime> |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MAX |
The largest allowed OffsetTime -- val MAX: OffsetTime |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MIN |
The smallest allowed OffsetTime -- val MIN: OffsetTime |
TIMELINE_ORDER |
Compares by timeline order only, ignoring any offset differences. (iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)val TIMELINE_ORDER: <ERROR CLASS>(jvm) val TIMELINE_ORDER: Comparator<OffsetTime> |
(jvm)
toJavaOffsetTime |
Convert to an equivalent Java fun OffsetTime.toJavaOffsetTime(): OffsetTime |