Android Hour Get getHour()

Here you can find the source of getHour()

Description

get Hour

Declaration

public static int getHour() 

Method Source Code

//package com.java2s;
import java.util.Calendar;

public class Main {
    public static int getHour() {
        return Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
    }/*  w ww.j  a  v  a  2 s  .c  om*/
}

Related

  1. betweenHours(int tuntil_h, int tfrom_h, int tuntil_m, int tfrom_m, int c_hour, int c_min)
  2. isBeforeHourTime(String compactTime, int hour)