摘要:
获得每日,每周,每月的0点和24点的时间戳博客分类:java//获得当天0点时间 public static int getTimesmorning(){ Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.MILLISECOND, 0); return (int) (cal.getTimeInMillis()/1000); } //获得当天24点时间 阅读全文