Calendar Htime= Calendar.getInstance();
double nowtime = Htime.getTime().getTime();
//ResultSet resultSet = ps.executeQuery();
Calendar Ltime= Calendar.getInstance();
double endtime = Ltime.getTime().getTime();
BigDecimal longtime = new BigDecimal((endtime-nowtime)/1000);
double second =longtime.setScale(3,BigDecimal.ROUND_HALF_UP).doubleValue();
时间: 2024-10-25 02:50:38