Java Calendar Hour hour(Calendar calendar)

Here you can find the source of hour(Calendar calendar)

Description

hour

License

Open Source License

Declaration

public static int hour(Calendar calendar) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static int hour(Calendar calendar) {
        return calendar.get(Calendar.HOUR_OF_DAY);
    }//  w ww .j  a  v a2 s  .  c  o m

    public static int hour() {
        return Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
    }
}

Related

  1. get24Hour(Calendar calendar)
  2. getHour(boolean twentyFour, Calendar calendar)
  3. getHour(Calendar cal)
  4. getHour(Calendar cal)
  5. getHour(Calendar calendar)
  6. hourFloor(Calendar calendar)
  7. hoursInDay(Calendar cal)
  8. moveHoursHand(int aNumberOfHours, Calendar aCalendar)
  9. moveToCalendarHourJust(Calendar cal)