class Time : Comparable<Time>
A time of day in an ambiguous region.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init> |
Creates a Time from its individual components. <init>(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0) |
(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)
nanosecondOfDay |
The nanosecond of the day. val nanosecondOfDay: Long |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
nanosecondsSinceStartOfDay |
The number of nanoseconds since the start of the day. val nanosecondsSinceStartOfDay: LongNanoseconds |
(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)
secondOfDay |
The second of the day. val secondOfDay: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
secondsSinceStartOfDay |
The number of seconds since the start of the day. val secondsSinceStartOfDay: IntSeconds |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
compareTo |
fun compareTo(other: Time): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
component1 |
operator fun component1(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
component2 |
operator fun component2(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
component3 |
operator fun component3(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
component4 |
operator fun component4(): 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(hour: Int = this.hour, minute: Int = this.minute, second: Int = this.second, nanosecond: Int = this.nanosecond): Time |
(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): Timeoperator fun minus(hours: LongHours): Timeoperator fun minus(hours: IntHours): Timeoperator fun minus(minutes: LongMinutes): Timeoperator fun minus(minutes: IntMinutes): Timeoperator fun minus(seconds: LongSeconds): Timeoperator fun minus(seconds: IntSeconds): Timeoperator fun minus(milliseconds: LongMilliseconds): Timeoperator fun minus(milliseconds: IntMilliseconds): Timeoperator fun minus(microseconds: LongMicroseconds): Timeoperator fun minus(microseconds: IntMicroseconds): Timeoperator fun minus(nanoseconds: LongNanoseconds): Timeoperator fun minus(nanoseconds: IntNanoseconds): Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
plus |
operator fun plus(duration: Duration): Timeoperator fun plus(hours: LongHours): Timeoperator fun plus(hours: IntHours): Timeoperator fun plus(minutes: LongMinutes): Timeoperator fun plus(minutes: IntMinutes): Timeoperator fun plus(seconds: LongSeconds): Timeoperator fun plus(seconds: IntSeconds): Timeoperator fun plus(milliseconds: LongMilliseconds): Timeoperator fun plus(milliseconds: IntMilliseconds): Timeoperator fun plus(microseconds: LongMicroseconds): Timeoperator fun plus(microseconds: IntMicroseconds): Timeoperator fun plus(nanoseconds: LongNanoseconds): Timeoperator fun plus(nanoseconds: IntNanoseconds): Time |
toString |
Converts this time to a string in ISO-8601 extended format. For example, fun toString(): <ERROR CLASS>(jvm) fun toString(): String |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MAX |
val MAX: Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MIDNIGHT |
val MIDNIGHT: Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MIN |
val MIN: Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
NOON |
val NOON: Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
fromNanosecondOfDay |
Creates a Time from the nanosecond of the day. fun fromNanosecondOfDay(nanosecondOfDay: Long): Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
fromNanosecondsSinceStartOfDay |
Creates the Time at a number of nanoseconds since the start of the day. fun fromNanosecondsSinceStartOfDay(nanoseconds: LongNanoseconds): Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
fromSecondOfDay |
Creates a Time from the second of the day and optionally, the number of nanoseconds within that second. fun fromSecondOfDay(secondOfDay: Int, nanosecond: Int = 0): Time |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
fromSecondsSinceStartOfDay |
Creates the Time at a number of seconds since the start of the day and optionally, a number of additional nanoseconds. fun fromSecondsSinceStartOfDay(seconds: IntSeconds, nanosecondAdjustment: IntNanoseconds = 0.nanoseconds): Time |
(jvm)
toJavaLocalTime |
Convert to an equivalent Java fun Time.toJavaLocalTime(): LocalTime |