Java Hour getHours()

Here you can find the source of getHours()

Description

get Hours

License

Apache License

Declaration

public static int getHours() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    public static int getHours() {
        Calendar now = Calendar.getInstance();
        return now.get(Calendar.HOUR);
    }/*from  w  w w  . j  a  va 2  s  . com*/
}

Related

  1. getHourOfDay(Calendar date)
  2. getHourOfDay(final Date date)
  3. getHourOfDayInAm(Date dt)
  4. getHourOfWeek(Date dateIn)
  5. getHours()
  6. getHours(Date t, Date baseDate)
  7. getHours(final Date date)
  8. getHours(java.util.Date _date)
  9. getHoursByDate(Date date, int hours)