Here you can find the source of zeroTime(Calendar cal)
@Deprecated public static Calendar zeroTime(Calendar cal)
//package com.java2s; import java.util.Calendar; public class Main { /**// w w w . j a v a2s . c o m * @deprecated Use {@link Calendars}. */ @Deprecated public static Calendar zeroTime(Calendar cal) { cal.set(Calendar.HOUR, 0); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal; } }