Rabbit-R1/original r1/java/sources/kotlin/time/jdk8/DurationConversionsJDK8Kt.java

25 lines
1.6 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package kotlin.time.jdk8;
import java.time.Duration;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.time.DurationKt;
import kotlin.time.DurationUnit;
/* compiled from: DurationConversions.kt */
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a\u0017\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0087\\u0001\u0000¢\u0006\u0004\b\u0003\u0010\u0004\u001a\u0012\u0010\u0005\u001a\u00020\u0002*\u00020\u0001H\u0087\\u0006\u0002\u0010\u0006\u0082\u0002\u0007\n\u0005\\u001e0\u0001¨\u0006\u0007"}, d2 = {"toJavaDuration", "Ljava/time/Duration;", "Lkotlin/time/Duration;", "toJavaDuration-LRDsOJo", "(J)Ljava/time/Duration;", "toKotlinDuration", "(Ljava/time/Duration;)J", "kotlin-stdlib-jdk8"}, k = 2, mv = {1, 9, 0}, pn = "kotlin.time", xi = 48)
/* loaded from: classes3.dex */
public final class DurationConversionsJDK8Kt {
private static final long toKotlinDuration(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "<this>");
return kotlin.time.Duration.m7060plusLRDsOJo(DurationKt.toDuration(duration.getSeconds(), DurationUnit.SECONDS), DurationKt.toDuration(duration.getNano(), DurationUnit.NANOSECONDS));
}
/* renamed from: toJavaDuration-LRDsOJo, reason: not valid java name */
private static final Duration m7186toJavaDurationLRDsOJo(long j) {
Duration ofSeconds = Duration.ofSeconds(kotlin.time.Duration.m7045getInWholeSecondsimpl(j), kotlin.time.Duration.m7047getNanosecondsComponentimpl(j));
Intrinsics.checkNotNullExpressionValue(ofSeconds, "toComponents-impl(...)");
return ofSeconds;
}
}