Here you can find the source of isTime0(final Calendar calendar)
public static boolean isTime0(final Calendar calendar)
//package com.java2s; import java.util.Calendar; public class Main { public static boolean isTime0(final Calendar calendar) { if (calendar.get(Calendar.HOUR_OF_DAY) == 0 && calendar.get(Calendar.MINUTE) == 0 && calendar.get(Calendar.SECOND) == 0 && calendar.get(Calendar.MILLISECOND) == 0) { return true; }/* w w w . j a v a 2 s . co m*/ return false; } }