Java Hour getHourInt()

Here you can find the source of getHourInt()

Description

get Hour Int

License

Open Source License

Declaration

public static int getHourInt() 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static int getHourInt() {
        Calendar ca = Calendar.getInstance();
        ca.setTime(new Date());
        return ca.get(Calendar.HOUR_OF_DAY);
    }/*from   w  w  w.jav a2 s  .  c om*/
}

Related

  1. getHourBeforeTime(int hour)
  2. getHourByZore(int hour)
  3. getHourDetails(int timeInfo)
  4. getHourFormatedTwoDigit()
  5. getHourFromDate(Date date)
  6. getHourMin(Date date)
  7. getHourMinuteSecondByMisSecond(long misSecond)
  8. getHourMinuteString(Date dateTime)
  9. getHourMinuteString(Date t)