what-the-bank/sources/com/google/android/gms/internal/location/zzbo.java

58 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.location;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import java.text.SimpleDateFormat;
import java.util.Locale;
/* loaded from: classes2.dex */
public final class zzbo {
private static final SimpleDateFormat zza = new SimpleDateFormat("MM-dd HH:mm:ss.SSS", Locale.ROOT);
private static final SimpleDateFormat zzb = new SimpleDateFormat("MM-dd HH:mm:ss", Locale.ROOT);
private static final StringBuilder zzc = new StringBuilder(33);
public static void zza(long j, StringBuilder sb) {
if (j == 0) {
sb.append("0s");
return;
}
sb.ensureCapacity(sb.length() + 27);
boolean z = false;
if (j < 0) {
sb.append("-");
if (j != Long.MIN_VALUE) {
j = -j;
} else {
j = Long.MAX_VALUE;
z = true;
}
}
if (j >= 86400000) {
sb.append(j / 86400000);
sb.append(KtaJsonExactionHelper.OBJECT);
j %= 86400000;
}
if (true == z) {
j = 25975808;
}
if (j >= 3600000) {
sb.append(j / 3600000);
sb.append("h");
j %= 3600000;
}
if (j >= 60000) {
sb.append(j / 60000);
sb.append("m");
j %= 60000;
}
if (j >= 1000) {
sb.append(j / 1000);
sb.append("s");
j %= 1000;
}
if (j > 0) {
sb.append(j);
sb.append("ms");
}
}
}