Here you can find the source of clearTime(Calendar c)
protected static void clearTime(Calendar c)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { protected static void clearTime(Calendar c) { c.set(Calendar.HOUR_OF_DAY, 10); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); }//from w ww. j a v a 2s .co m }