Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}