Java Hour getCurrentHours()

Here you can find the source of getCurrentHours()

Description

get Current Hours

License

BSD License

Declaration

public static int getCurrentHours() 

Method Source Code

//package com.java2s;
/*L// w w  w.  ja v  a  2  s  .com
 * Copyright Georgetown University, Washington University.
 *
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/cab2b/LICENSE.txt for details.
 */

import java.util.Calendar;

public class Main {
    public static int getCurrentHours() {
        return Calendar.getInstance().get(Calendar.HOUR);
    }
}

Related

  1. getBeforeOneHour()
  2. getCalenderWithHour(int hours)
  3. getCurrentHour()
  4. getCurrentHour()
  5. getCurrentHour()
  6. getCurrHour()
  7. getDelay(int hour, int min)
  8. getDelayToNextHour(int amount, boolean skipNext)
  9. getGMTHour(int localHour)