Here you can find the source of setStartTimeOfDay(Calendar calender)
private static void setStartTimeOfDay(Calendar calender)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { private static void setStartTimeOfDay(Calendar calender) { calender.set(Calendar.HOUR_OF_DAY, calender.getActualMinimum(Calendar.HOUR_OF_DAY)); calender.set(Calendar.MINUTE, calender.getActualMinimum(Calendar.MINUTE)); calender.set(Calendar.SECOND, calender.getActualMinimum(Calendar.SECOND)); calender.set(Calendar.MILLISECOND, calender.getActualMinimum(Calendar.MILLISECOND)); }/* w w w . jav a 2 s.c o m*/ }