40 lines
1.2 KiB
Java
40 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Calendar;
|
||
|
import java.util.TimeZone;
|
||
|
import java.util.concurrent.atomic.AtomicReference;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class OnG {
|
||
|
private static AtomicReference<C5157bnj> c = new AtomicReference<>();
|
||
|
|
||
|
public static Calendar e() {
|
||
|
C5157bnj c5157bnj = c.get();
|
||
|
if (c5157bnj == null) {
|
||
|
c5157bnj = C5157bnj.b;
|
||
|
}
|
||
|
TimeZone timeZone = c5157bnj.c;
|
||
|
Calendar calendar = Calendar.getInstance();
|
||
|
Long l = c5157bnj.a;
|
||
|
calendar.set(11, 0);
|
||
|
calendar.set(12, 0);
|
||
|
calendar.set(13, 0);
|
||
|
calendar.set(14, 0);
|
||
|
calendar.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||
|
return calendar;
|
||
|
}
|
||
|
|
||
|
public static Calendar c(Calendar calendar) {
|
||
|
Calendar calendar2 = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
|
||
|
if (calendar == null) {
|
||
|
calendar2.clear();
|
||
|
} else {
|
||
|
calendar2.setTimeInMillis(calendar.getTimeInMillis());
|
||
|
}
|
||
|
Calendar calendar3 = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
|
||
|
calendar3.clear();
|
||
|
calendar3.set(calendar2.get(1), calendar2.get(2), calendar2.get(5));
|
||
|
return calendar3;
|
||
|
}
|
||
|
}
|