jni C/C++ 头文件:MyFileTime.h C/C++ code /* DO NOT EDIT THIS FILE - it is machine generated */#include <jni.h>/* Header for class MyFileTime */ #ifndef _Included_MyFileTime#define _Included_MyFileTime#ifdef __cplusplusextern "C" {#endif/* * C
还是日志的问题,需要把日志文件的一些信息给显示出来,其中就需要显示最后的编辑时间,在网上找的答案... File f = new File(path); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(f.lastModified()); info[0] = sdf.format(c