public boolean isSameDate(long a, long b) {
return a / (24*60*60*1000L) == b / (24*60*60*1000L);
}
java对比两个时间戳(毫秒值)是否为同一天
最新推荐文章于 2024-07-16 04:59:03 发布
public boolean isSameDate(long a, long b) {
return a / (24*60*60*1000L) == b / (24*60*60*1000L);
}