what-the-bank/sources/o/C2974aoj.java

55 lines
1.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Locale;
import org.threeten.bp.OffsetDateTime;
import org.threeten.bp.format.DateTimeParseException;
/* renamed from: o.aoj, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C2974aoj {
public static /* synthetic */ String b(String str) {
Locale locale = Locale.ROOT;
C14957gcv.c(locale, "");
C14957gcv.e(str, "");
C14957gcv.e(locale, "");
String upperCase = str.toUpperCase(locale);
C14957gcv.c((Object) upperCase, "");
return upperCase;
}
public static /* synthetic */ String d(String str) {
Locale locale = Locale.ROOT;
C14957gcv.c(locale, "");
C14957gcv.e(str, "");
C14957gcv.e(locale, "");
String lowerCase = str.toLowerCase(locale);
C14957gcv.c((Object) lowerCase, "");
return lowerCase;
}
public static final boolean c(String str) {
return str == null || gdZ.b((CharSequence) str).toString().length() == 0;
}
public static final OffsetDateTime a(String str, OffsetDateTime offsetDateTime) {
OffsetDateTime parse;
if (str == null) {
return offsetDateTime;
}
try {
if (str.length() <= 10) {
parse = gsN.parse(str, new C15553gtn().appendPattern("yyyy-MM-dd").parseDefaulting(EnumC15534gtD.NANO_OF_DAY, 0L).toFormatter().withZone(AbstractC15502gsH.systemDefault())).toOffsetDateTime();
} else {
parse = OffsetDateTime.parse(str);
}
return parse;
} catch (DateTimeParseException e) {
guQ.c(e, "date format string is not ISO-8601 format (2018-04-17T07:55:01+00:00)", new Object[0]);
return offsetDateTime;
} catch (RuntimeException e2) {
guQ.c(e2, "cannot create datetime object due to some settings are wrong", new Object[0]);
return offsetDateTime;
}
}
}