what-the-bank/sources/com/facetec/sdk/fa.java

46 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Locale;
/* loaded from: classes.dex */
public final class fa {
public static DateFormat e(int i, int i2) {
StringBuilder sb = new StringBuilder();
sb.append(d(i));
sb.append(" ");
sb.append(e(i2));
return new SimpleDateFormat(sb.toString(), Locale.US);
}
private static String d(int i) {
if (i == 0) {
return "EEEE, MMMM d, yyyy";
}
if (i == 1) {
return "MMMM d, yyyy";
}
if (i == 2) {
return "MMM d, yyyy";
}
if (i == 3) {
return "M/d/yy";
}
throw new IllegalArgumentException("Unknown DateFormat style: ".concat(String.valueOf(i)));
}
private static String e(int i) {
if (i == 0 || i == 1) {
return "h:mm:ss a z";
}
if (i == 2) {
return "h:mm:ss a";
}
if (i == 3) {
return "h:mm a";
}
throw new IllegalArgumentException("Unknown DateFormat style: ".concat(String.valueOf(i)));
}
}