Here you can find the source of clearHoursMinutesSecondsMillis(Calendar calendar)
public static void clearHoursMinutesSecondsMillis(Calendar calendar)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static void clearHoursMinutesSecondsMillis(Calendar calendar) { calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); }// w w w . j a v a 2s .c om }