Java Hour convertHour(Long createAt)

Here you can find the source of convertHour(Long createAt)

Description

convert Hour

License

Apache License

Declaration

public static Integer convertHour(Long createAt) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Integer convertHour(Long createAt) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(createAt);// w ww.j  ava 2 s  .  c o  m

        return cal.get(Calendar.HOUR);
    }
}

Related

  1. delayBeforeNextHour()
  2. get24Hour()
  3. getAlarmOnQuarterHour()
  4. getAnHourBack()