Bring back Duration construction extensions KT-46229
Return the extension properties for constructing Duration from numbers, but this time place them in Duration.Companion rather than on top-level. - provide the new set of construction extension properties in companion of Duration - leave top-level extension properties experimental, increase their deprecation level to ERROR, propose the extension properties in companion instead. - leave Duration companion static factory functions experimental, deprecate them and propose the extension properties in companion instead.
This commit is contained in:
@@ -1,106 +1,127 @@
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@@ -279,60 +300,177 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
||||
|
||||
public final val ZERO: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
public final fun convert(value: kotlin.Double, sourceUnit: kotlin.time.DurationUnit, targetUnit: kotlin.time.DurationUnit): kotlin.Double
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
public final fun parse(value: kotlin.String): kotlin.time.Duration
|
||||
@@ -344,12 +482,21 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
||||
public final fun parseOrNull(value: kotlin.String): kotlin.time.Duration?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Long): kotlin.time.Duration
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,106 +1,127 @@
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.days() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.days(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.hours() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.hours(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.microseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.microseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.milliseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.milliseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.minutes() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.minutes(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.nanoseconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.nanoseconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Double.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Double.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Int.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Int.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use Duration.seconds() function instead.", replaceWith = kotlin.ReplaceWith(expression = "Duration.seconds(this)", imports = {"kotlin.time.Duration"}))
|
||||
@kotlin.Deprecated(message = "Use 'Long.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "this.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.5")
|
||||
public val kotlin.Long.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@@ -279,60 +300,177 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
||||
|
||||
public final val ZERO: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.days: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.hours: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.microseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.milliseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.minutes: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.nanoseconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Double.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Int.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public final val kotlin.Long.seconds: kotlin.time.Duration { get; }
|
||||
|
||||
public final fun convert(value: kotlin.Double, sourceUnit: kotlin.time.DurationUnit, targetUnit: kotlin.time.DurationUnit): kotlin.Double
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.days' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun days(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.hours' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun hours(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.microseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun microseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.milliseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun milliseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.minutes' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun minutes(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.nanoseconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun nanoseconds(value: kotlin.Long): kotlin.time.Duration
|
||||
|
||||
public final fun parse(value: kotlin.String): kotlin.time.Duration
|
||||
@@ -344,12 +482,21 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
||||
public final fun parseOrNull(value: kotlin.String): kotlin.time.Duration?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Double.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Double): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Int.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Int): kotlin.time.Duration
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@kotlin.time.ExperimentalTime
|
||||
@kotlin.Deprecated(message = "Use 'Long.seconds' extension property from Duration.Companion instead.", replaceWith = kotlin.ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public final fun seconds(value: kotlin.Long): kotlin.time.Duration
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user