Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { private static boolean isCurrentTimeBeforeConfigedUpdateTime() { Calendar current = Calendar.getInstance(); Calendar configedTime = getTodayAutoPushTime(); return current.before(configedTime); } private static Calendar getTodayAutoPushTime() { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 10); calendar.set(Calendar.MINUTE, 0); return calendar; } }