package j$.time.temporal;

/* JADX INFO: compiled from: r8-map-id-da1bda724d8b26dc30f90d2ccf434f42461d6c82e7dbdeb074f412e5504de99c */
/* JADX INFO: loaded from: classes2.dex */
public enum ChronoUnit implements TemporalUnit {
    NANOS("Nanos", j$.time.c.m(1)),
    MICROS("Micros", j$.time.c.m(1000)),
    MILLIS("Millis", j$.time.c.m(1000000)),
    SECONDS("Seconds", j$.time.c.l(1, 0)),
    MINUTES("Minutes", j$.time.c.l(60, 0)),
    HOURS("Hours", j$.time.c.l(3600, 0)),
    HALF_DAYS("HalfDays", j$.time.c.l(43200, 0)),
    DAYS("Days", j$.time.c.l(86400, 0)),
    WEEKS("Weeks", j$.time.c.l(604800, 0)),
    MONTHS("Months", j$.time.c.l(2629746, 0)),
    YEARS("Years", j$.time.c.l(31556952, 0)),
    DECADES("Decades", j$.time.c.l(315569520, 0)),
    CENTURIES("Centuries", j$.time.c.l(3155695200L, 0)),
    MILLENNIA("Millennia", j$.time.c.l(31556952000L, 0)),
    ERAS("Eras", j$.time.c.l(31556952000000000L, 0)),
    FOREVER("Forever", j$.time.c.l(j$.com.android.tools.r8.a.S(Long.MAX_VALUE, j$.com.android.tools.r8.a.X(999999999, 1000000000)), (int) j$.com.android.tools.r8.a.W(999999999, 1000000000)));

    public final String a;
    public final j$.time.c b;

    ChronoUnit(String str, j$.time.c cVar) {
        this.a = str;
        this.b = cVar;
    }

    @Override // j$.time.temporal.TemporalUnit
    public long between(Temporal temporal, Temporal temporal2) {
        return temporal.until(temporal2, this);
    }

    @Override // j$.time.temporal.TemporalUnit
    public final j$.time.c getDuration() {
        return this.b;
    }

    @Override // j$.time.temporal.TemporalUnit
    public final Temporal k(Temporal temporal, long j) {
        return temporal.d(j, this);
    }

    @Override // java.lang.Enum
    public final String toString() {
        return this.a;
    }
}
