Offset Time
A time of day with an offset from UTC.
Throws
if the offset is invalid
Constructors
OffsetTime
Link copied to clipboard
fun OffsetTime(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0, offset: UtcOffset)
Content copied to clipboard
Creates an OffsetTime.
OffsetTime
Link copied to clipboard
Types
Functions
adjustedTo
Link copied to clipboard
Changes the offset of this OffsetTime, adjusting the time component such that the instant represented by it remains the same.
compareTo
Link copied to clipboard
copy
Link copied to clipboard
fun copy(time: Time = this.time, offset: UtcOffset = this.offset): OffsetTime
Content copied to clipboard
minus
Link copied to clipboard
plus
Link copied to clipboard
Properties
nanosecond
Link copied to clipboard
nanosecondsSinceStartOfUtcDay
Link copied to clipboard
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.
Extensions
roundedDownTo
Link copied to clipboard
roundedDownToNearest
Link copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntMilliseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntMicroseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntNanoseconds): OffsetTime
Content copied to clipboard
roundedTo
Link copied to clipboard
roundedToNearest
Link copied to clipboard
roundedUpTo
Link copied to clipboard
roundedUpToNearest
Link copied to clipboard
fun OffsetTime.roundedUpToNearest(increment: IntMilliseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedUpToNearest(increment: IntMicroseconds): OffsetTime
Content copied to clipboard
toJavaOffsetTime
Link copied to clipboard
toNSDateComponents
Link copied to clipboard
fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
Content copied to clipboard
truncatedTo
Link copied to clipboard