//core/io.islandtime/Time/Companion
Companion¶
common
object Companion
Properties¶
Name | Summary |
---|---|
MAX | common val MAX: Time |
MIDNIGHT | common val MIDNIGHT: Time |
MIN | common val MIN: Time |
NOON | common val NOON: Time |
Functions¶
Name | Summary |
---|---|
fromNanosecondOfDay | common fun fromNanosecondOfDay(nanosecondOfDay: Long): Time Creates a Time from the nanosecond of the day. |
fromNanosecondsSinceStartOfDay | common fun fromNanosecondsSinceStartOfDay(nanoseconds: Nanoseconds): Time Creates the Time at a number of nanoseconds since the start of the day. |
fromSecondOfDay | common fun fromSecondOfDay(secondOfDay: Int, nanosecond: Int = 0): Time Creates a Time from the second of the day and optionally, the number of nanoseconds within that second. |
fromSecondsSinceStartOfDay | common fun fromSecondsSinceStartOfDay(seconds: Seconds, nanosecondAdjustment: Nanoseconds = 0.nanoseconds): Time Creates the Time at a number of seconds since the start of the day and optionally, a number of additional nanoseconds. |
now | common fun Time.Companion.now(): Time Gets the current Time from the system clock. common fun Time.Companion.now(clock: Clock): Time Gets the current Time from the provided clock. jvm fun Time.Companion.now(clock: Clock): Time Gets the current Time from the provided clock. |