Java Hour getCurrHour()

Here you can find the source of getCurrHour()

Description

get Curr Hour

License

Apache License

Declaration

public static int getCurrHour() 

Method Source Code

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

import java.util.Calendar;

import java.util.Date;

public class Main {

    public static int getCurrHour() {
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        return c.get(Calendar.HOUR_OF_DAY);
    }// w ww . jav  a  2s .  c o  m
}

Related

  1. getCalenderWithHour(int hours)
  2. getCurrentHour()
  3. getCurrentHour()
  4. getCurrentHour()
  5. getCurrentHours()
  6. getDelay(int hour, int min)
  7. getDelayToNextHour(int amount, boolean skipNext)
  8. getGMTHour(int localHour)
  9. getHexString(byte[] raw)