话不多说 上代码
public boolean judgmentTime(Long time) {
long current = System.currentTimeMillis();
long cha = current - time;
if (cha < 0) {
return false;
}
double result = cha * 1.0 / (1000 * 60 * 60);
if (result > 24) {
return true;
} else {
return false;
}
}