public static Date getNowDate() {
        Date currentTime = new Date();
        String dateString = FORMATTER_LONG.format(currentTime);
        ParsePosition pos = new ParsePosition(8);
        Date currentTime_2 = FORMATTER_LONG.parse(dateString, pos);
        return currentTime_2;
    }
public static Date getNowDate() {
        Date currentTime = new Date();
        String dateString = FORMATTER_LONG.format(currentTime);
        ParsePosition pos = new ParsePosition(8);
        Date currentTime_2 = FORMATTER_LONG.parse(dateString, pos);
        return currentTime_2;
    }
public static Date getNowDate ( ) { Date currentTime = new Date ( ) ; String dateString = FORMATTER_LONG . format ( currentTime ) ; ParsePosition pos = new ParsePosition ( 8 ) ; Date currentTime_2 = FORMATTER_LONG . parse ( dateString , pos ) ; return currentTime_2 ; }
获取现在时间

@return 返回时间类型 yyyy-MM-dd HH:mm:ss
获取现在时间