//明天凌晨十二点的时间戳
long now = System.currentTimeMillis() / 1000l;
long daySecond = 60 * 60 * 24;
long endTime = now - (now + 8 * 3600) % daySecond + 1daySecond;
//今天凌晨十二点的时间戳
long nowTime =System.currentTimeMillis();
long startTime = nowTime - (nowTime + TimeZone.getDefault().getRawOffset())% (10003600*24);
今天凌晨十二点和明天凌晨十二点的时间戳
最新推荐文章于 2022-06-27 19:10:41 发布