获取某天的0点时间

  

    注意:存在几毫秒误差

    

	public static long getDayStart(long time){
		long t = (time+28800000)%86400000;
		return time-t;
	}

猜你喜欢

转载自itace.iteye.com/blog/2065734