Companion

object Companion

Functions

equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
fromNanosecondOfDay
Link copied to clipboard
common

Creates a Time from the nanosecond of the day.

fun fromNanosecondOfDay(nanosecondOfDay: Long): Time
fromNanosecondsSinceStartOfDay
Link copied to clipboard
common

Creates the Time at a number of nanoseconds since the start of the day.

fun fromNanosecondsSinceStartOfDay(nanoseconds: LongNanoseconds): Time
fromSecondOfDay
Link copied to clipboard
common

Creates a Time from the second of the day and optionally, the number of nanoseconds within that second.

fun fromSecondOfDay(secondOfDay: Int, nanosecond: Int): Time
fromSecondsSinceStartOfDay
Link copied to clipboard
common

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): Time
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

MAX
Link copied to clipboard
common
val MAX: Time
MIDNIGHT
Link copied to clipboard
common
val MIDNIGHT: Time
MIN
Link copied to clipboard
common
val MIN: Time
NOON
Link copied to clipboard
common
val NOON: Time

Extensions

now
Link copied to clipboard

Gets the current Time from the provided clock.

fun Time.Companion.now(clock: Clock): Time

Gets the current Time from the system clock.

common
fun Time.Companion.now(): Time

Gets the current Time from the provided clock.

common
fun Time.Companion.now(clock: Clock): Time