Android Calendar Get getHour(Calendar c)

Here you can find the source of getHour(Calendar c)

Description

get Hour

Declaration

public static int getHour(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getHour(Calendar c) {
        if (c != null) {
            return c.get(Calendar.HOUR);
        } else {//  ww w.j av  a2  s. co m
            return Calendar.getInstance().get(Calendar.HOUR);
        }
    }
}

Related

  1. getDay(Calendar c)
  2. getFirstOfWeek(Calendar cal, int week)
  3. getFragmentInDays(Calendar calendar, int fragment)
  4. getFragmentInHours(Calendar calendar, int fragment)
  5. getGuessedDateString()
  6. getLastOfWeek(Calendar cal, int week)
  7. getMaxTimeMillisToday()
  8. getMaxTimeMillisToday(final Calendar calendar)
  9. getMinTimeMillisToday()