Files
rr3-apk/decompiled-community/sources/com/google/gson/internal/PreJava9DateFormatProvider.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

62 lines
1.7 KiB
Java

package com.google.gson.internal;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Locale;
/* loaded from: classes3.dex */
public class PreJava9DateFormatProvider {
public static DateFormat getUSDateFormat(int i) {
return new SimpleDateFormat(getDateFormatPattern(i), Locale.US);
}
public static DateFormat getUSDateTimeFormat(int i, int i2) {
return new SimpleDateFormat(getDatePartOfDateTimePattern(i) + " " + getTimePartOfDateTimePattern(i2), Locale.US);
}
private static String getDateFormatPattern(int i) {
if (i == 0) {
return "EEEE, MMMM d, y";
}
if (i == 1) {
return "MMMM d, y";
}
if (i == 2) {
return "MMM d, y";
}
if (i == 3) {
return "M/d/yy";
}
throw new IllegalArgumentException("Unknown DateFormat style: " + i);
}
private static String getDatePartOfDateTimePattern(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: " + i);
}
private static String getTimePartOfDateTimePattern(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: " + i);
}
}