core / io.islandtime.measures / kotlin.Long

Extensions for kotlin.Long

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

centuries

Convert to LongCenturies.

val Long.centuries: LongCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

days

Convert to LongDays.

val Long.days: LongDays
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

decades

Convert to LongDecades.

val Long.decades: LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

hours

Convert to LongHours.

val Long.hours: LongHours
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

microseconds

Convert to LongMicroseconds.

val Long.microseconds: LongMicroseconds
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

milliseconds

Convert to LongMilliseconds.

val Long.milliseconds: LongMilliseconds
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

minutes

Convert to LongMinutes.

val Long.minutes: LongMinutes
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

months

Convert to LongMonths.

val Long.months: LongMonths
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

nanoseconds

Convert to LongNanoseconds.

val Long.nanoseconds: LongNanoseconds
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

seconds

Convert to LongSeconds.

val Long.seconds: LongSeconds
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

times

Multiply by a number of centuries.

operator fun Long.times(centuries: IntCenturies): LongCenturies
operator fun Long.times(centuries: LongCenturies): LongCenturies

Multiply by a number of days.

operator fun Long.times(days: IntDays): LongDays
operator fun Long.times(days: LongDays): LongDays

Multiply by a number of decades.

operator fun Long.times(decades: IntDecades): LongDecades
operator fun Long.times(decades: LongDecades): LongDecades

Multiply by a number of hours.

operator fun Long.times(hours: IntHours): LongHours
operator fun Long.times(hours: LongHours): LongHours

Multiply by a number of microseconds.

operator fun Long.times(microseconds: IntMicroseconds): LongMicroseconds
operator fun Long.times(microseconds: LongMicroseconds): LongMicroseconds

Multiply by a number of milliseconds.

operator fun Long.times(milliseconds: IntMilliseconds): LongMilliseconds
operator fun Long.times(milliseconds: LongMilliseconds): LongMilliseconds

Multiply by a number of minutes.

operator fun Long.times(minutes: IntMinutes): LongMinutes
operator fun Long.times(minutes: LongMinutes): LongMinutes

Multiply by a number of months.

operator fun Long.times(months: IntMonths): LongMonths
operator fun Long.times(months: LongMonths): LongMonths

Multiply by a number of nanoseconds.

operator fun Long.times(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun Long.times(nanoseconds: LongNanoseconds): LongNanoseconds

Multiply by a number of seconds.

operator fun Long.times(seconds: IntSeconds): LongSeconds
operator fun Long.times(seconds: LongSeconds): LongSeconds

Multiply by a number of weeks.

operator fun Long.times(weeks: IntWeeks): LongWeeks
operator fun Long.times(weeks: LongWeeks): LongWeeks

Multiply by a number of years.

operator fun Long.times(years: IntYears): LongYears
operator fun Long.times(years: LongYears): LongYears
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

weeks

Convert to LongWeeks.

val Long.weeks: LongWeeks
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

years

Convert to LongYears.

val Long.years: LongYears