public static boolean fun(int calendar_day, long time){
Calendar c1 = Calendar.getInstance();
Calendar c2 = Calendar.getInstance();
if (time != 0) {
c2.setTimeInMillis(time);
if (c1.get(calendar_day) == c2.get(calendar_day)) {
return true;
}
}
return false;
}
Calendar c1 = Calendar.getInstance();
Calendar c2 = Calendar.getInstance();
if (time != 0) {
c2.setTimeInMillis(time);
if (c1.get(calendar_day) == c2.get(calendar_day)) {
return true;
}
}
return false;
}
比较日期中的特定字段
4323

被折叠的 条评论
为什么被折叠?



