long currentTime = new Date().getTime(); long zeroTime = currentTime - (currentTime + TimeZone.getDefault().getRawOffset()) % (1000 * 3600 * 24); new Date(zeroTime);
版权声明:本文为weixin_30512027原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
long currentTime = new Date().getTime(); long zeroTime = currentTime - (currentTime + TimeZone.getDefault().getRawOffset()) % (1000 * 3600 * 24); new Date(zeroTime);