Logo Search packages:      
Sourcecode: jlha-utils version File versions  Download package

static String org::jlhafrontend::ListFormatter::genFileDate ( File  a  )  [inline, static]

generate date string of a file

Parameters:
a the File instance
Returns:
string of the date

Definition at line 232 of file ListFormatter.java.

                                             {
        long lt=0;
        Date d1;
        SimpleDateFormat df1 = new SimpleDateFormat("MMM dd HH:mm",Locale.US);
        try {
          lt = a.lastModified();
        } catch (Exception e) {
        }
        d1 = new Date(lt);
        String ret;
        ret = df1.format(d1);
        return ret;
    }        


Generated by  Doxygen 1.6.0   Back to index