common_helper/src/main/java/com/xiongyingqi/util/DateHelper.java
public static String getHour() {
        Date currentTime = new Date();
        String dateString = FORMATTER_LONG.format(currentTime);
        String hour;
        hour = dateString.substring(11, 13);
        return hour;
    }
public static String getHour() {
        Date currentTime = new Date();
        String dateString = FORMATTER_LONG.format(currentTime);
        String hour;
        hour = dateString.substring(11, 13);
        return hour;
    }
public static String getHour ( ) { Date currentTime = new Date ( ) ; String dateString = FORMATTER_LONG . format ( currentTime ) ; String hour ; hour = dateString . substring ( 11 , 13 ) ; return hour ; }
得到现在小时
得到现在小时