Android Hour Format getCurrentHour()

Here you can find the source of getCurrentHour()

Description

get Current Hour

Declaration

public static int getCurrentHour() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getCurrentHour() {
        Calendar c = Calendar.getInstance();

        return c.get(Calendar.HOUR_OF_DAY);
    }// www .  j  a v a 2 s  . co m
}

Related

  1. formatHour(String string)
  2. formatHour(int val)
  3. getReminderReadableTime(int hour, int minute)
  4. getDateByAddHour(String datetime, int minute)
  5. getDateByAddFltHour(float flt)
  6. homiToString(int hour, int minute)
  7. formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds)