新浪彩票 v0.96.37版本的 MD5 值为:0c7ddce345383506e2959f5d75bdceab
以下内容为反编译后的 C3631.java 源代码,内容仅作参考
package ewUlBWKNoApzb1Mnhgn4.O6AgNJgW1GmSRcLCckPu.tuTnrQl15gwcjciRsKuT.ScQQfj7RBI9EASOsKPvc;
import android.text.format.Time;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.tencent.smtt.sdk.TbsReaderView;
import ewUlBWKNoApzb1Mnhgn4.Uqo9k3Yc5Xgyg6qHnvMd.tuTnrQl15gwcjciRsKuT.ewUlBWKNoApzb1Mnhgn4.C4169;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class C3631 {
private static final String f14028 = "yyyy-MM-dd HH:mm:ss";
public static class C3632 {
public static final int[] f14029;
static {
int[] iArr = new int[EnumC3633.values().length];
f14029 = iArr;
try {
iArr[EnumC3633.YEAR.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f14029[EnumC3633.MONTH.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f14029[EnumC3633.DAY.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
f14029[EnumC3633.HOUR.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
f14029[EnumC3633.MINUTE.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
f14029[EnumC3633.SECOND.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
f14029[EnumC3633.WEEKDAY.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
}
}
public enum EnumC3633 {
YEAR,
MONTH,
DAY,
HOUR,
MINUTE,
SECOND,
WEEKDAY
}
public static String m16299() {
return m16305("yyyy-MM-dd HH:mm:ss");
}
public static int m16300(long j, EnumC3633 enumC3633) {
Time time = new Time();
time.set(j);
switch (C3632.f14029[enumC3633.ordinal()]) {
case 1:
return time.year;
case 2:
return time.month;
case 3:
return time.monthDay;
case 4:
return time.hour;
case 5:
return time.minute;
case 6:
return time.second;
case 7:
return time.weekDay;
default:
return 0;
}
}
public static long m16301() {
try {
String[] strArr = {"http://www.bjtime.cn", "http://www.baidu.com", "http://www.taobao.com", "http://www.ntsc.ac.cn", "http://www.time.ac.cn/"};
for (int i = 0; i < 5; i++) {
URLConnection openConnection = new URL(strArr[i]).openConnection();
openConnection.setConnectTimeout(TbsReaderView.ReaderCallback.GET_BAR_ANIMATING);
openConnection.connect();
if (openConnection.getDate() > m16312("2016-01-01 00:00:00")) {
return openConnection.getDate();
}
}
return -1L;
} catch (IOException e) {
e.printStackTrace();
return -1L;
}
}
public static boolean m16302(String str, String str2, String str3) {
return m16313(str, str2, str3, "yyyy-MM-dd HH:mm:ss");
}
public static String m16303(long j, String str) {
Date date = new Date();
try {
date.setTime(j);
} catch (NumberFormatException e) {
e.printStackTrace();
}
return new SimpleDateFormat(str, Locale.CHINA).format(date);
}
public static String m16304(Date date) {
return m16307(date, "yyyy-MM-dd HH:mm:ss");
}
public static String m16305(String str) {
return new SimpleDateFormat(str, Locale.CHINA).format(new Date(System.currentTimeMillis()));
}
public static int[] m16306(long j) {
Time time = new Time();
time.set(j);
return new int[]{time.year, time.month + 1, time.monthDay, time.hour, time.minute, time.second};
}
public static String m16307(Date date, String str) {
return new SimpleDateFormat(str, Locale.CHINA).format(date);
}
public static long m16308(String str, String str2) {
Calendar calendar = Calendar.getInstance();
try {
calendar.setTime(new SimpleDateFormat(str2, Locale.CHINA).parse(str));
return calendar.getTimeInMillis();
} catch (ParseException e) {
e.printStackTrace();
return 0L;
}
}
public static String m16309(long j) {
return m16303(j, "yyyy-MM-dd HH:mm:ss");
}
public static Date m16310(String str) {
return m16314(str, "yyyy-MM-dd HH:mm:ss");
}
public static String m16311(long j) {
StringBuilder sb;
StringBuilder sb2;
String str;
long j2 = (long) C4169.f15210;
long j3 = j / j2;
long j4 = j - (j2 * j3);
long j5 = (long) C4169.f15204;
long j6 = j4 / j5;
long j7 = (j4 - (j5 * j6)) / 1000;
if (j3 < 10) {
sb = new StringBuilder();
sb.append(PushConstants.PUSH_TYPE_NOTIFY);
} else {
sb = new StringBuilder();
sb.append("");
}
sb.append(j3);
String sb3 = sb.toString();
if (j6 < 10) {
sb2 = new StringBuilder();
sb2.append(PushConstants.PUSH_TYPE_NOTIFY);
} else {
sb2 = new StringBuilder();
sb2.append("");
}
sb2.append(j6);
String sb4 = sb2.toString();
if (j7 < 10) {
str = PushConstants.PUSH_TYPE_NOTIFY + j7;
} else {
str = "" + j7;
}
return sb3 + ":" + sb4 + ":" + str;
}
public static long m16312(String str) {
return m16308(str, "yyyy-MM-dd HH:mm:ss");
}
public static boolean m16313(String str, String str2, String str3, String str4) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(str4, Locale.CHINA);
try {
Date parse = simpleDateFormat.parse(str2);
Date parse2 = simpleDateFormat.parse(str3);
Date parse3 = simpleDateFormat.parse(str);
if (parse.getTime() <= parse3.getTime()) {
return parse2.getTime() >= parse3.getTime();
}
return false;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
public static Date m16314(String str, String str2) {
try {
return new SimpleDateFormat(str2, Locale.CHINA).parse(str);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}