Package io. islandtime. measures
Classes related to the measurement of time, including Duration, Period, and more specific units, such as IntHours or LongYears.
Types
Duration
Link copied to clipboard
IntCenturies
Link copied to clipboard
IntDays
Link copied to clipboard
IntDecades
Link copied to clipboard
IntHours
Link copied to clipboard
IntMicroseconds
Link copied to clipboard
IntMilliseconds
Link copied to clipboard
IntMinutes
Link copied to clipboard
IntMonths
Link copied to clipboard
IntNanoseconds
Link copied to clipboard
IntSeconds
Link copied to clipboard
IntWeeks
Link copied to clipboard
IntYears
Link copied to clipboard
LongCenturies
Link copied to clipboard
LongDays
Link copied to clipboard
LongDecades
Link copied to clipboard
LongHours
Link copied to clipboard
LongMicroseconds
Link copied to clipboard
inline class LongMicroseconds(value: Long) : Comparable<LongMicroseconds>
Content copied to clipboard
LongMilliseconds
Link copied to clipboard
inline class LongMilliseconds(value: Long) : Comparable<LongMilliseconds>
Content copied to clipboard
LongMinutes
Link copied to clipboard
LongMonths
Link copied to clipboard
LongNanoseconds
Link copied to clipboard
LongSeconds
Link copied to clipboard
LongWeeks
Link copied to clipboard
LongYears
Link copied to clipboard
Functions
asDuration
Link copied to clipboard
asPeriod
Link copied to clipboard
Converts this duration into a Period with the same number of days.
Converts this duration into a Period with the same number of months.
Converts this duration into a Period with the same number of weeks.
Converts this duration into a Period with the same number of years.
Converts this duration into a Period with the same number of days.
Converts this duration into a Period with the same number of weeks.
durationOf
Link copied to clipboard
fun durationOf(seconds: IntSeconds, nanoseconds: IntNanoseconds): Duration
Content copied to clipboard
Creates a Duration.
fun durationOf(seconds: IntSeconds, nanoseconds: LongNanoseconds): Duration
Content copied to clipboard
Creates a Duration.
fun durationOf(seconds: LongSeconds, nanoseconds: IntNanoseconds): Duration
Content copied to clipboard
Creates a Duration.
fun durationOf(seconds: LongSeconds, nanoseconds: LongNanoseconds): Duration
Content copied to clipboard
Creates a Duration.
minus
Link copied to clipboard
plus
Link copied to clipboard
times
Link copied to clipboard
operator fun Long.times(microseconds: LongMicroseconds): LongMicroseconds
Content copied to clipboard
operator fun Long.times(milliseconds: LongMilliseconds): LongMilliseconds
Content copied to clipboard
toDuration
Link copied to clipboard
fun String.toDuration(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Duration
Content copied to clipboard
toIslandDays
Link copied to clipboard
toIslandDuration
Link copied to clipboard
toIslandHours
Link copied to clipboard
toIslandMicroseconds
Link copied to clipboard
toIslandMilliseconds
Link copied to clipboard
toIslandMinutes
Link copied to clipboard
toIslandNanoseconds
Link copied to clipboard
toIslandSeconds
Link copied to clipboard
toPeriod
Link copied to clipboard
fun String.toPeriod(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Period
Content copied to clipboard
Properties
centuries
Link copied to clipboard
centuries
Link copied to clipboard
decades
Link copied to clipboard
decades
Link copied to clipboard
microseconds
Link copied to clipboard
microseconds
Link copied to clipboard
milliseconds
Link copied to clipboard
milliseconds
Link copied to clipboard
minutes
Link copied to clipboard
minutes
Link copied to clipboard
months
Link copied to clipboard
nanoseconds
Link copied to clipboard
nanoseconds
Link copied to clipboard
seconds
Link copied to clipboard
seconds
Link copied to clipboard