Java Hour getPreHour()

Here you can find the source of getPreHour()

Description

get Pre Hour

License

Open Source License

Declaration

public static int getPreHour() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getPreHour() {

        Calendar now = Calendar.getInstance();
        now.add(Calendar.HOUR_OF_DAY, -1);

        return now.get(Calendar.HOUR_OF_DAY);
    }//w  w w.ja  v a  2  s  .  c o  m
}

Related

  1. getHoursByDate(Date date, int hours)
  2. getHoursOfTowDiffDate(String p_startDate, String p_endDate)
  3. getLastHour()
  4. getLasthour()
  5. getMinOfHour(long l1)
  6. getPreHourText(String pattern)
  7. getPrevHour(Date date)
  8. getSecondsPassedInHour()
  9. getTaskTrigger(int taskTriggerHour, boolean tomorrow)