Java Hour isHour(int hour)

Here you can find the source of isHour(int hour)

Description

is Hour

License

Open Source License

Declaration

public static boolean isHour(int hour) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static boolean isHour(int hour) {
        return getHourOfDay() == hour;
    }/*from w w w .jav a  2 s  .co m*/

    public static int getHourOfDay() {
        return Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
    }
}

Related

  1. hourCompletion(boolean hourPresent, int hour, boolean minutePresent, int minute, boolean secondPresent, int second, boolean milliPresent, int milli, String choice)
  2. HourNow()
  3. Hours()
  4. hours(int hours)
  5. hoursAndMinsToMilliseconds(int sign, int hours, int minutes)
  6. nextHour(Date date)
  7. nextHour(int hour)
  8. resetHourMillisToZero(long millis)
  9. tomrrow(int hour, int minute, int second)